Commit Graph

223 Commits

Author SHA1 Message Date
uruk
6015eddc41 CGE2: Remove double definition kMaxTry. 2014-06-22 18:44:33 +02:00
uruk
cb3dce698c CGE2: Rework Hero::len(). 2014-06-22 14:10:47 +02:00
Strangerke
af646247f3 CGE2: Remove useless variable declarations 2014-06-22 13:48:58 +02:00
uruk
8ae41648f9 CGE2: Implement snSwap(). 2014-06-22 13:38:47 +02:00
uruk
f36cfb629c CGE2: Fix mapCross(). 2014-06-22 13:26:55 +02:00
uruk
fc5c92b5d0 CGE2: Implement snGive() and snRmNear(). 2014-06-22 13:05:24 +02:00
Strangerke
f1b14c6d31 CGE2: Reduce the scope of some variables 2014-06-21 18:45:28 +02:00
Strangerke
7faa95bfdd CGE2: Avoid some signed/unsigned comparisons 2014-06-21 18:33:31 +02:00
uruk
e708c1e5cd CGE2: Implement "quit menu".
Now the "main switch" on the menu panel is working.
Also move a couple of defines from cge2_main.h to cge2.h during the process.
2014-06-21 01:57:18 +02:00
uruk
fcd387553f CGE2: Implement optionTouch().
Add stubs for called functions.
2014-06-19 12:30:44 +02:00
uruk
76846bf4f5 CGE2: Implement Hero::fun(). 2014-06-19 12:23:00 +02:00
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