Commit Graph

56 Commits

Author SHA1 Message Date
uruk
848b2650e9 CGE2: Unstub CommandHandler::runCommand(). 2014-07-22 19:07:56 +02:00
uruk
def6b4fc3e CGE2: Add and use Sound::checkSoundHandle(). 2014-07-22 18:54:48 +02:00
uruk
2f19de9ebe CGE2: Fix error introduced by previous commit. 2014-07-22 18:01:37 +02:00
uruk
e261886d92 CGE2: Fix snSound(). 2014-07-22 17:59:16 +02:00
uruk
77b5c7e4ad CGE2: Rename _commandStat to _soundStat. 2014-07-22 15:41:33 +02:00
uruk
db9e503cfc CGE2: Rework snSetRef(). 2014-07-18 02:26:13 +02:00
uruk
a82bd2d9c6 CGE2: Fix memory leak regarding Sprite::ghost().
uint8 *v = new uint8;
was the faulty line in Sprite::ghost(), and it should be released right here.
2014-07-17 15:18:55 +02:00
Strangerke
fbd8f2c390 CGE2: Some rework in snail 2014-07-15 19:32:07 +02:00
uruk
8fae34df05 CGE2: Implement snRoom(). 2014-07-15 16:22:43 +02:00
uruk
d947167931 CGE2: Fix the intro animation. 2014-07-15 15:17:00 +02:00
uruk
753b5f89ba CGE2: Unstub CommandHandler::reset(). 2014-07-14 18:17:07 +02:00
uruk
c7aa91019b CGE2: Replace NULL with nullptr everywhere. 2014-07-07 21:42:45 +02:00
uruk
b9dc93c451 CGE2: Heavily rework memory management of Sprites.
Hopefully it will solve a bunch of memory leak problems.
Now Spare is a central container, which stores pointers to every Sprite currently used by the engine.
Because of that, there's no more need for Queue's clear().
In case of snKill(), it's just a safeguard, since it's only used by the engine to "kill" the speech bubbles, but we will check Spare anyway, so it's the safest this way.
2014-07-04 12:58:46 +02:00
Strangerke
384f1b664b CGE2: Implement snMidi() 2014-06-25 19:36:59 +02:00
Strangerke
3dd6c9f7aa CGE2: Implement a couple of stubs 2014-06-24 22:14:19 +02:00
uruk
2226eb0789 CGE2: Implement snSay(), reimplement some parts of the sound code. 2014-06-23 10:20:24 +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
fc5c92b5d0 CGE2: Implement snGive() and snRmNear(). 2014-06-22 13:05:24 +02:00
uruk
ea9b4d0729 CGE2: Implement snMouse(). 2014-06-19 11:50:42 +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
186d90e5b5 CGE2: Implement switching between scenes.
Minor modification in Spare again to do so.
2014-06-17 15:37:55 +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
e3b5686c43 CGE2: Rename caves to scenes. 2014-06-15 21:23:14 +02: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
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
bad8e7ea26 CGE2: Fix Sprite::ghost and snGhost(). 2014-06-13 17:02:17 +02:00
uruk
95c844a035 CGE2: Implement snKill().
Add and implement Sprite::setCave() during the process.
2014-06-13 16:13:36 +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
12c531284b CGE2: Implement a couple of command handling functions. 2014-06-09 23:54:45 +02:00
uruk
cfe03245fa CGE2: Handle kCmdNop correctly. 2014-06-08 07:52:21 +02:00
uruk
8c3e63e471 CGE2: Reduce number of unhandled commands (seemingly). 2014-06-08 07:38:16 +02:00
Strangerke
160edae77a CGE2: Silence some gcc and cppcheck warnings 2014-06-03 22:12:59 +02:00
Strangerke
11ebdcb5e0 CGE2: nullify some pointers 2014-06-03 20:18:48 +02:00
Strangerke
de8affdec5 CGE2: Silence some gcc warnings 2014-06-03 17:39:10 +02:00
Strangerke
5ad4e157e5 CGE2: Silence a warning in runCommand 2014-05-30 10:56:02 +02:00
Strangerke
bea9e0532e CGE2: Move an unused variable in a STUB clock, initialize it (in the comment). That fixes a warning 2014-05-30 10:44:56 +02:00
uruk
60825760fd CGE2: Implement snGhost().
Also implement Sprite::ghost().
2014-05-29 20:05:51 +02:00
uruk
7c73ce5d8b CGE2: Implement snSend(). 2014-05-29 19:58:38 +02:00
uruk
566419f3ad CGE2: Implement snHide(). 2014-05-29 18:49:45 +02:00
uruk
3c86aa288b CGE2: Implement snSound().
Rework the whole Fx class during the process.
The intro animation is working now.
2014-05-24 10:47:07 +02:00
uruk
4cf5c28fee CGE2: Implement snRSeq() and snSeq(). 2014-05-24 09:06:22 +02:00
uruk
eb80080784 CGE2: Some refactoring and fixing regarding runCommand(). 2014-05-24 00:11:43 +02:00
uruk
947f4b8607 CGE2: Partially implement CommandHandler::runCommand(). 2014-05-23 15:23:19 +02:00