212 Commits

Author SHA1 Message Date
uruk
ea9b4d0729 CGE2: Implement snMouse(). 2014-06-19 11:50:42 +02:00
uruk
ff99cb9658 CGE2: Implement Sprite::works().
Now Anna is also reachable/playable.
2014-06-19 11:43:01 +02:00
uruk
56c7df46d3 CGE2: Implement showing the selected item in the inventory.
Now the selected item's picture is blinking until deselected.
2014-06-19 11:34:25 +02:00
uruk
535b70934e CGE2: Comment out code and add TODO in switchScene(). 2014-06-19 10:44:00 +02:00
uruk
d7e70eb5fa CGE2: Implement inf(). 2014-06-19 00:09:01 +02:00
uruk
7a549f2693 CGE2: Implement offUse(). 2014-06-18 23:34:26 +02:00
uruk
ea5697d5a0 CGE2: Implement snKeep().
Now the inventory system is (at least partially) working.
2014-06-18 22:58:33 +02:00
uruk
d85d3229e6 CGE2: Implement functions connected to inventory handling.
Also move closePocket() closer to the others and fix the stub message in busy().
2014-06-18 22:37:54 +02:00
uruk
fb97e24a5a CGE2: Fix coords of misplaced speech bubbles.
The origin of the bug is that when we added the command (triggered by a mouse-click on a sprite) to display a speech bubble we checked the command's reference wrong and didn't bind (by modifying the reference) the bubble to a certain hero. So they just appeared randomly above the sprites what triggered the event, or even in worse places.
2014-06-18 20:43:24 +02:00
uruk
26901479d3 CGE2: Fix initialization of _posTab.
Fixes a possible memory leak.
2014-06-17 15:38:24 +02:00
uruk
186d90e5b5 CGE2: Implement switching between scenes.
Minor modification in Spare again to do so.
2014-06-17 15:37:55 +02:00
Strangerke
40262bad98 CGE: Remove (broken) variable length specification 2014-06-15 22:48:23 +02:00
uruk
9023240545 CGE2: Rework show() and hide() in Bitmap to use V2Ds as parameters. 2014-06-15 21:33:41 +02:00
uruk
c488c15289 CGE2: Rework Sprite::touch to use V2D for coords. 2014-06-15 21:29:32 +02:00
uruk
7f4af90777 CGE2: Fix compilation broken by previous commit. 2014-06-15 21:24:59 +02:00
uruk
e3b5686c43 CGE2: Rename caves to scenes. 2014-06-15 21:23:14 +02:00
uruk
baffdd97e2 CGE2: Fix coordinates of mouse handling.
Now infoLine is working properly. Rework solidAt() to achieve that.
Also move spriteAt from talk.cpp to cge2_main.cpp, and remove the older version which didn't use V2D as a parameter.
2014-06-15 21:11:42 +02:00
uruk
ae96463036 CGE2: Rework EventManager::handleEvents().
Also add and implement spriteAt() during the process.
2014-06-15 21:11:42 +02:00
Strangerke
c82246ee55 CGE2: remove useless code related to boolean values 2014-06-15 11:25:56 +02:00
Strangerke
0f923c7e98 CGE2: Change the Flags structure to make use of booleans 2014-06-15 11:12:13 +02:00
Paul Gilbert
c48c585f88 CGE2: Fix loading of fixed-point integer values 2014-06-14 19:34:30 -04:00
uruk
600c32adf9 CGE2: Implement snWalk(). 2014-06-14 20:27:26 +02:00
uruk
58c312d9e9 CGE2: Implement snReach() and connected functions. 2014-06-14 20:13:08 +02:00
uruk
3d63184fee CGE2: Rethink Spare::dispose(). 2014-06-14 19:46:18 +02:00
Paul Gilbert
28717ff056 CGE2: Fix vertical screen clipping in Bitmap::show and Bitmap::hide 2014-06-13 23:22:44 -04:00
uruk
a2c3a11708 CGE2: Rename setCave() to setScene(). 2014-06-13 22:36:32 +02:00
uruk
2b5eec4427 CGE2: Implement snCover and snUncover.
Also add and implement expandSprite().
2014-06-13 22:29:39 +02:00
uruk
63c0cb40fe CGE2: Stub snSay again. 2014-06-13 22:20:19 +02:00
uruk
52fb03fc97 CGE2: Fix Sprite::touch().
Not it only takes action if the user actually clicked.
2014-06-13 22:19:41 +02:00
uruk
0bd781a3dc CGE2: Implement releasePocket(). 2014-06-13 19:52:28 +02:00
uruk
95e3f240d6 CGE2: Implement Hero::turn(). 2014-06-13 19:41:43 +02:00
uruk
3aae5cfa06 CGE2: Implement Hero::hStep(). 2014-06-13 19:39:24 +02:00
uruk
235d0fffbd CGE2: Reimplement Hero::setCave(). 2014-06-13 19:36:36 +02:00
uruk
bad8e7ea26 CGE2: Fix Sprite::ghost and snGhost(). 2014-06-13 17:02:17 +02:00
uruk
2ad2be370e CGE2: Implement Hero::tick(). 2014-06-13 16:31:32 +02:00
uruk
95c844a035 CGE2: Implement snKill().
Add and implement Sprite::setCave() during the process.
2014-06-13 16:13:36 +02:00
uruk
6ac5e2cfcf CGE2: Fix initialization of HeroTab. 2014-06-13 14:07:35 +02:00
Paul Gilbert
162c840937 CGE2: Fix FXP initialiation and division operator 2014-06-12 23:49:06 -04:00
Strangerke
dfc94267d5 CGE2: Get somewhat better values 2014-06-12 21:05:19 +02:00
Strangerke
207f3c8be2 CGE2: Implement FXP code. Still WIP, loadTab to be fixed 2014-06-12 07:20:55 +02:00
Strangerke
45f8bd755c CGE2: Fix code computing distance 2014-06-12 01:18:10 +02:00
uruk
5a5fe344a0 CGE2: Implement display of speech bubbles.
The sound code connected to them is still gappy.
2014-06-10 17:27:59 +02:00
uruk
85c55333b3 CGE2: Handle kCmdSetRef.
Fix Snail during the process.
2014-06-10 14:38:30 +02:00
uruk
71b0a4cc69 CGE2: Implement Sprite::labVal(). 2014-06-10 14:02:33 +02:00
uruk
e10f22b62f CGE2: Move kLineMax to cge2.h. 2014-06-10 14:02:17 +02:00
uruk
12c531284b CGE2: Implement a couple of command handling functions. 2014-06-09 23:54:45 +02:00
uruk
63fa2d4906 CGE2: Simplify if-statements. 2014-06-09 23:34:40 +02:00
uruk
76fa66fc8c CGE2: Fix endless loop regarding kCmdWait. 2014-06-09 23:20:46 +02:00
Strangerke
5d80601c06 CGE2: Reduce the scope of a couple of variables, fix style 2014-06-08 22:53:38 +02:00
uruk
93010a8407 CGE2: Implement CGE2Engine::mapCross().
Rework Map during the process.
2014-06-08 14:26:42 +02:00