Commit Graph

549 Commits

Author SHA1 Message Date
uruk
668b133dab CGE2: Implement the music volume button on the toolbar. 2014-07-25 22:24:36 +02:00
uruk
9524f1d128 CGE2: Remove useless TODO comment. 2014-07-25 20:30:12 +02:00
uruk
98c6bfa0f5 CGE2: Fix broken compilation by previous commit. 2014-07-25 20:29:42 +02:00
uruk
22f1207cff CGE2: Rename kSoundSwtichRate to kVolumeSwitchRate. 2014-07-25 20:27:05 +02:00
uruk
aaf1f6a1a0 CGE2: Fix initialization of sound switches on the toolbar. 2014-07-25 20:24:10 +02:00
uruk
3c0665edfa CGE2: Rework loadUser().
Now initToolbar() works as intended both when starting a new game or when loading an old gamestate.
2014-07-25 19:20:50 +02:00
Strangerke
72c8dbaf66 CGE2: Update another warning 2014-07-25 10:58:54 +02:00
Strangerke
d83a8162bb CGE2: Remove unused constant in Talk, fix a warning 2014-07-25 10:55:53 +02:00
uruk
737fc953a4 CGE2: Rearrange _commandText[]'s content. 2014-07-24 23:25:09 +02:00
uruk
8a1d046187 CGE2: Fix kCmdWalk's comment. 2014-07-24 23:22:46 +02:00
uruk
b85e5dcfdb CGE2: Remove kCmdDim and kCmdStep and connected code. 2014-07-24 23:19:02 +02:00
uruk
42f0440127 CGE2: Remove more unused opcodes. 2014-07-24 23:16:12 +02:00
uruk
6caee925df CGE2: Fix typo in SETREF's comment. 2014-07-24 23:07:11 +02:00
uruk
12210ecf27 CGE2: Remove the unused opcodes. 2014-07-24 23:06:11 +02:00
uruk
c843898132 CGE2: Remove handling of unused opcodes. 2014-07-24 22:57:26 +02:00
uruk
15a2256972 CGE2: Implement snTrans() and snPort(). 2014-07-24 22:19:11 +02:00
uruk
7c65aa7aec CGE2: Repair/rename checkSoundHandle(). 2014-07-24 19:44:09 +02:00
uruk
6743b8b6a3 CGE2: Remove redundant default labels. 2014-07-24 18:55:41 +02:00
uruk
ff97d52d72 CGE2: Distinguish SFX from speech when playing sounds.
Now the sound options of ScummVM are taken into account when playing these two types of sounds. Until now, everything was considered SFX sound.
2014-07-24 18:55:09 +02:00
uruk
24cc8a8762 CGE2: Implement checkSaySwitch() and add/fix connected code. 2014-07-24 18:11:10 +02:00
uruk
755fedcceb CGE2: Set speech only/text only/both modes according to Launcher options. 2014-07-24 16:50:36 +02:00
uruk
a6eb089033 CGE2: Move inventory system's functions from cge2_main.cpp to inventory.cpp. 2014-07-23 14:56:11 +02:00
uruk
cd8b7c0d15 CGE2: Move toolbar's functions from cge2_main.cpp to toolbar.cpp. 2014-07-23 14:47:43 +02:00
uruk
014b734c98 CGE2: Increase readability of code connected to music switch. 2014-07-23 14:24:06 +02:00
uruk
6336ddb3ce CGE2: Keep music setting in sync with the Launcher. 2014-07-23 12:31:06 +02:00
uruk
4c3bd3e0f5 CGE2: Add MidiPlayer::syncVolume() call to checkSounds(). 2014-07-23 10:09:27 +02:00
uruk
b15b1043f9 CGE2: Updgrade checkSaySwitch().
Now it takes into account the "Speech volume" option in the Launcher and it only plays the keyClick() sound if the button is really switched, not every time it's clicked.
2014-07-23 10:00:03 +02:00
uruk
71a9ead967 CGE2: Add and implement checkSounds() and checkMusicSwitch(). 2014-07-23 09:52:05 +02:00
uruk
2f5e115e9a CGE2: Use nullptr instead of NULL in switchColorMode(). 2014-07-23 09:29:24 +02:00
uruk
93b8f101c3 CGE2: Implement switchMusic(): 2014-07-23 09:28:57 +02:00
uruk
49f68a8913 CGE2: Reimplement checkSaySwitch(). 2014-07-22 20:25:21 +02:00
uruk
848b2650e9 CGE2: Unstub CommandHandler::runCommand(). 2014-07-22 19:07:56 +02:00
uruk
aa6b4601d7 CGE2: Change call order of checkSoundHandle(). 2014-07-22 18:59:22 +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
bac952917f CGE2: Remove Spare::locate(char *file), since it's not used anymore. 2014-07-21 20:20:33 +02:00
uruk
6e26422468 CGE2: Rework loading of sprites from file.
Now it satisfies the needs described in the last commit's TODO comment.
2014-07-21 19:57:33 +02:00
uruk
1176721034 CGE2: Fix the issue of loading sprites with changed _ref.
It fixes the problem with the multiply displayed Vulcanizer after giving him the glasses/basket ball, then saving and loading.
2014-07-21 19:52:46 +02:00
uruk
db9e503cfc CGE2: Rework snSetRef(). 2014-07-18 02:26:13 +02:00
uruk
c285d3299c CGE2: Silence GCC warnings. 2014-07-18 00:12:53 +02:00
uruk
f3345f296f CGE2: Use locate instead() of take() in CGE2Eninge::locate().
It fixes the regression with the hole of the sign post on the ground from scene 6 and the display bug in the hospital.
2014-07-17 20:50:16 +02:00
uruk
5963a540ef CGE2: Add destructor to Hero().
Hopefully it will cut short the leak problems with _dim[].
2014-07-17 17:33:04 +02:00
uruk
49cea2d927 CGE2: Initialize _wideSpace in InfoLine's constructor. 2014-07-17 17:23:12 +02:00
uruk
5e780d3d97 CGE2: Use locate() instead of take() where possible. 2014-07-17 16:44:02 +02:00
uruk
2203b7df8c CGE2: Smaller revision regarding Spare. 2014-07-17 16:41:32 +02:00
uruk
d9e82f8f8e CGE2: Get rid of _sprite. 2014-07-17 15:41:49 +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
uruk
20eb951b3a CGE2: Rework getText() so it works nicely with offUse(). 2014-07-15 23:54:07 +02:00
uruk
7d6c02ce3f CGE2: Add Hero::contract().
Fix the crash introduced by previous commit on the second scene.
2014-07-15 23:12:58 +02:00
uruk
0b0f998aac CGE2: Try a different approach regarding _dim.
Now it doesn't crash the hospital scene, but I am not entirely sure it's totally leak-free...
2014-07-15 22:15:06 +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
8861b0b583 CGE2: Get rid of _mode. 2014-07-15 14:41:46 +02:00
uruk
470736b9c4 CGE2: Remove unnecessary comment from sceneUp(). 2014-07-15 14:19:55 +02:00
uruk
035fb6ad1c CGE2: Hopefully fix a memory leak problem regarding Hero::_dim; 2014-07-15 13:53:26 +02:00
uruk
753b5f89ba CGE2: Unstub CommandHandler::reset(). 2014-07-14 18:17:07 +02:00
uruk
2f8967d959 CGE2: Unstub showTitle(). 2014-07-14 18:15:49 +02:00
uruk
807f354cba CGE2: Remove unused classes from vga13h. 2014-07-14 18:14:20 +02:00
uruk
b941fe226d CGE2: Unstub movie(). 2014-07-14 18:04:16 +02:00
uruk
89295b7895 CGE2: Remove unnecessary comment from ~Vga(). 2014-07-14 18:01:36 +02:00
Strangerke
4d2c1315ac CGE2: Silence a GCC warning, reduce the scope of a variable 2014-07-09 18:48:16 +02:00
uruk
fcce50e6fe CGE2: Hook handling of F10 into the Keyboard::getKey(). 2014-07-09 16:56:33 +02:00
uruk
f57d2ff4d6 CGE2: Remove unnecessary stub from Keyboard's constructor. 2014-07-09 16:56:32 +02:00
Strangerke
1be1ce6117 CGE2: Set widespace for Inf text, update first line of info text in CGE.SAY 2014-07-09 16:44:23 +02:00
Strangerke
dc2330a3b1 CGE2: Implement the keyboard handler 2014-07-09 15:48:47 +02:00
uruk
dbea97b7c4 CGE2: Remove unnecessary stub from loadHeroes(). 2014-07-09 12:57:11 +02:00
uruk
55f91da1ee CGE2: Remove unused local variable from loadScript(). 2014-07-09 12:56:16 +02:00
uruk
ec88528080 CGE2: Remove unnecessary stub from cge2_main(). 2014-07-09 12:53:51 +02:00
uruk
3dc79442c9 CGE2: Fix Sound::open(). 2014-07-09 12:51:03 +02:00
uruk
2f8abb06c3 CGE2: Implement Sound::open(), add stub for checkSaySwitch(). 2014-07-09 12:46:49 +02:00
uruk
8f869c74c0 CGE2: Add option for enabling color blind mode from the Launcher. 2014-07-09 11:55:27 +02:00
uruk
c1bda3c973 CGE2: Remove unnecessary stub from run(). 2014-07-09 11:53:52 +02:00
uruk
5a1383343f CGE2: Rework number(). 2014-07-09 11:33:02 +02:00
uruk
45da1e7c74 CGE2: Implement switchVox() and switchCap(). 2014-07-09 11:17:30 +02:00
uruk
d0a6fa4ce2 CGE2: Implement switchColorMode(). 2014-07-09 10:41:36 +02:00
uruk
ffbed9f86d CGE2: Comment out Hero::contract() for now. 2014-07-08 14:09:11 +02:00
uruk
b75d308697 CGE2: Rework CGE2Engine::locate(). 2014-07-08 14:09:10 +02:00
Strangerke
a73aea1ce8 CGE2: Fix GCC warning, rewrite Text::clear() 2014-07-08 09:45:22 +02:00
Paul Gilbert
3935a427f9 CGE2: Add extra clipping to Bitmap::hide 2014-07-07 21:48:02 -04:00
uruk
be5ec466b3 CGE2: Fix another probable memory-leak source. 2014-07-07 23:58:06 +02:00
uruk
10a37ea478 CGE2: Fix Hero::setCurrent().
This fixes a crash regarding the mechanic on scene 6.
2014-07-07 23:35:27 +02:00
uruk
1335247f82 CGE2: Hopefully fix memory leak problems regarding _ext. 2014-07-07 21:52:16 +02:00
uruk
c7aa91019b CGE2: Replace NULL with nullptr everywhere. 2014-07-07 21:42:45 +02:00
Strangerke
c5855b4293 CGE2: Add workaround for the missing dialogs in room 21 (concert) 2014-07-07 10:41:43 +02:00
Paul Gilbert
21a4c44bea CGE2: Add extra clipping to Bitmap::hide 2014-07-04 22:05:02 -04:00
uruk
e15f40978a CGE2: Implement loading from the Launcher. 2014-07-04 19:07:38 +02:00
uruk
31bba2e38c CGE2: Remove unnecessary warning and debug info from showTitle(). 2014-07-04 18:59:33 +02:00
uruk
8b8216bf2c CGE2: Fully implement the save/load system.
Now the toolbar is working too after loading.
2014-07-04 18:39:03 +02:00
uruk
07fa483142 CGE2: Fix broken compilation by previous commit. 2014-07-04 18:04:40 +02:00
uruk
a3071a00f9 CGE2: Replace addExt() wit setExtension(). 2014-07-04 13:26:27 +02:00
uruk
dbbafb5d89 CGE2: Rename and heavily rework Bitmap::forceExt().
Since the extension is always ".VBM" in case of Bitmaps, there's no need to pass it as an argument.
2014-07-04 13:01:29 +02:00
uruk
ddf4f4598d CGE2: Rename saveHeroPos() to storeHeroPos(). 2014-07-04 13:01:29 +02:00
uruk
927be46c87 CGE2: Remove unnecessary parameter from Spare::sync(). 2014-07-04 13:01:28 +02:00
uruk
f155546ecb CGE2: Partially working save/load system.
There's a mayor bug which blocks the toolbar from interaction after loading. To be investigated during the upcoming days.
2014-07-04 13:01:28 +02:00
uruk
aeaac02332 CGE2: Silence warning. 2014-07-04 12:58:47 +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
uruk
1305bc8aa8 CGE2: Add, implement and use saveHeroPos(). 2014-07-04 12:58:45 +02:00
Strangerke
b48c94a541 CGE2: Fix GCC warning 2014-07-02 01:33:37 +02:00
uruk
7810df976b CGE2: Rework Hero::expand() so it won't modify Text's content. 2014-06-30 01:10:17 +02:00
uruk
ade740de10 CGE2: Implement saving. 2014-06-29 22:52:03 +02:00
uruk
b6d4281917 CGE2: Call loadPos() from loadHero() instead of loadUser(). 2014-06-29 21:38:46 +02:00
uruk
38a59bee3e CGE2: Add skeleton for save/load system.
Also rename loadGame() to loadHeroes().
2014-06-29 20:36:54 +02:00
uruk
160212c8e3 CGE2: Add fallback detection for the currently WIP English translation. 2014-06-28 23:44:48 +02:00
uruk
2f80cf6faf CGE2: Fix formatting of FXP's operators. 2014-06-28 21:39:16 +02:00
uruk
f69ee470ed CGE2: Rework FXP::Joined().
This commit hopefully silence a great wall of GCC warnings.
2014-06-28 21:38:21 +02:00
uruk
69c8871c3f CGE2: Silence GCC warning in Hero::tick(). 2014-06-28 19:53:05 +02:00
Strangerke
6f2e4a76cc CGE2: Add workaround for badly named VBM file in room 11 2014-06-28 00:46:32 +02:00
uruk
2514d86630 CGE2: Implement Sprite::step() fully. 2014-06-27 23:40:23 +02:00
uruk
723bdc12ad CGE2: Make Hero's expand() and contract() virtual.
Now it mimics the original correctly.
2014-06-27 12:11:06 +02:00
Strangerke
b08b3eac33 CGE2: Add a virtual destructor in Choice, some minor cleanup 2014-06-27 07:34:27 +02:00
Strangerke
e9396f8d10 CGE2: Fix some GCC warnings 2014-06-27 01:09:34 +02:00
Strangerke
014d6bd9f0 CGE2: Hopefully fix compilation for GCC 2014-06-26 21:07:24 +02:00
Strangerke
00c867f8ea CGE2: Add a safeguard in Sprite::show() 2014-06-25 19:37:25 +02:00
Strangerke
384f1b664b CGE2: Implement snMidi() 2014-06-25 19:36:59 +02:00
Strangerke
2bc35f6f6d CGE2: Add a work around for missing VBM in scene 4 2014-06-24 23:36:37 +02:00
Strangerke
3dd6c9f7aa CGE2: Implement a couple of stubs 2014-06-24 22:14:19 +02:00
Strangerke
840eef8eb1 CGE2: Add a big hack to work around the coordinates issue 2014-06-23 18:10:05 +02:00
uruk
0eece817eb CGE2: Fix releasePocket().
Now the inventory system is working as intended.
2014-06-23 13:11:54 +02:00
uruk
23adc159ef CGE2: Implement busy() and revise connected parts of the engine. 2014-06-23 11:50:49 +02:00
uruk
2226eb0789 CGE2: Implement snSay(), reimplement some parts of the sound code. 2014-06-23 10:20:24 +02:00
uruk
19bc151939 CGE2: Some more formatting fix in FXP. 2014-06-22 23:11:27 +02:00
uruk
c8ed838c05 CGE2: Fix formatting in FXP. 2014-06-22 19:28:55 +02:00
uruk
7b628c7ffc CGE2: Fix some formatting in Hero. 2014-06-22 19:06:40 +02:00
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
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
uruk
ba8bc2e40b CGE2: Rework empty-checks of strings. 2014-06-08 12:55:19 +02:00
uruk
acbd19bec4 CGE2: Some rework in Map. 2014-06-08 12:42:05 +02:00
uruk
1d8536e6df CGE2: Replace tab with space. 2014-06-08 11:06:12 +02:00
uruk
9afe6bd570 CGE2: Add, implement and use Map. 2014-06-08 09:53:47 +02:00
uruk
cfe03245fa CGE2: Handle kCmdNop correctly. 2014-06-08 07:52:21 +02:00
uruk
5fca8c328c CGE2: Fix stub message in CGE2Engine::mapCross(). 2014-06-08 07:44:46 +02:00
uruk
5a7924678a CGE2: Further implement Hero's functions. 2014-06-08 07:41:25 +02:00
uruk
8c3e63e471 CGE2: Reduce number of unhandled commands (seemingly). 2014-06-08 07:38:16 +02:00
uruk
9aa80d6d05 CGE2: Implement helper functions connected to Hero.
Also rework Hero::len() during the process.
2014-06-08 07:30:31 +02:00
uruk
a62e044174 CGE2: Keep on implementing Hero.
Also add a couple of helping functions to CGE2Engine.
2014-06-07 21:35:48 +02:00
uruk
f2a1d4f1c8 CGE2: Implement walkTo() and snap() in Hero. 2014-06-07 21:09:19 +02:00
uruk
0cad1988e4 CGE2: Remove unnecessary variable from System::touch(). 2014-06-07 21:07:46 +02:00
uruk
bb216eba2f CGE2: Implement System::touch(). 2014-06-07 20:33:52 +02:00
uruk
acb81c5e74 CGE2: Fully implement caveUp().
Also implement connected parts of Hero.
2014-06-07 19:44:16 +02:00
uruk
23d40712c6 CGE2: Refine implementation of Queue::insert(). 2014-06-07 19:40:29 +02:00
uruk
968f24af47 CGE2: Fix coord conversion in EventManager::poll(). 2014-06-06 22:26:27 +02:00
uruk
97bb1370a3 CGE2: Reimplement the way of handling y coord.
In CGE2, the top left coords are (0, kScreenHeight), not (0,0).
2014-06-06 22:20:05 +02:00
uruk
152d795b45 CGE2: Implement InfoLine.
Move initialization of _font, so it precedes _infoLine's and doesn't cause more problems.
2014-06-06 22:07:32 +02:00
uruk
9efb2ef1a9 CGE2: Implement Talk. 2014-06-06 21:35:29 +02:00
uruk
63a153165a CGE2: Implement Font. 2014-06-06 16:45:02 +02:00
uruk
f2c0069765 CGE2: Change BitmapPtr *_shpList -> BitmapPtr _shpList.
Update rest of the code accordingly.
2014-06-06 14:57:34 +02:00
uruk
c6fd9bf8ce CGE2: Remove stub from Vga::update().
It was for displaying debug lines. May be placed back again later during some debugging.
2014-06-06 12:00:22 +02:00
uruk
85d9e9238c CGE2: Remove _m and xShow() from Bitmap, makeXlat() and killXlat() from Sprite.
They are not used in CGE2 at all (or used differently).
2014-06-05 00:45:33 +02:00
uruk
7838852f94 CGE2: Stub buggy part of loadTab(). 2014-06-05 00:11:35 +02:00
uruk
26b7ecd2ee CGE2: Get rid of _spareQ.
CGE2 uses an instance of Spare instead of it.
2014-06-04 22:57:02 +02:00
uruk
58ee44ceb2 CGE2: Remove unnecessary check from Sprite::step(). 2014-06-04 22:50:32 +02:00
Strangerke
a0aa7df19c CGE2: Remove useless 'void' 2014-06-04 07:10:27 +02:00
Strangerke
8d00ce68d5 CGE2: Remove 2 useless stubs 2014-06-04 01:08:25 +02:00
Strangerke
b6d8e2b247 CGE2: Unstub some code used to move sprites 2014-06-04 01:03:51 +02:00
Strangerke
c5072db8fb CGE2: Fix remaining shadowed variables 2014-06-03 22:46:59 +02:00
Strangerke
516ad6e843 CGE2: Reduce the scope of some variables 2014-06-03 22:41:19 +02:00
Strangerke
aabe883dc2 CGE2: Fix some more GCC warnings 2014-06-03 22:34:39 +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
7ef509608e CGE2: USe an int for sex instead of a boolean 2014-06-03 07:42:17 +02:00
Strangerke
46d93eb780 CGE2: Rework style in touch() 2014-06-03 07:35:21 +02:00
Strangerke
41f9195f56 CGE2: Fix flags synchronization 2014-06-03 07:28:33 +02:00
Strangerke
5d9e31c708 CGE2: Fix rounding error, remove (original) debug code 2014-06-03 07:12:49 +02:00
uruk
6d73870431 CGE2: Move then implement Sprite::touch().
Also add stubs for called functions.
2014-06-02 14:46:59 +02:00
uruk
87db3d2d75 CGE2: Add _blinkSprite.
This also fixes previously broken compilation in 79ef038.
2014-06-02 14:38:40 +02:00
uruk
21513b448f CGE2: Partially implement and use loadGame(). 2014-06-02 14:37:41 +02:00
uruk
0e62716038 CGE2: Add and use Spare::take(). 2014-06-02 14:33:30 +02:00
uruk
79ef03801d CGE2: Implement CGE2Eninge::switchHero(). 2014-06-02 13:58:52 +02:00
uruk
562644db48 CGE2: Remove unnecessary void parameters in Hero. 2014-06-02 13:50:47 +02:00
uruk
219f4f6695 CGE2: Implement Hero::setCurrent(). 2014-06-02 13:43:28 +02:00
uruk
ff21b2d5c8 CGE2: Implement Hero::expand(), move Sprite::works()'s stub to hero.cpp. 2014-06-02 10:03:15 +02:00
uruk
8eb6a4db8b CGE2: Add display of mouse cursor.
The actual click-handling is not working yet.
2014-06-01 21:44:07 +02:00
uruk
82898716cf CGE2: Reimplement Vga::show(). 2014-05-31 15:22:29 +02:00
Strangerke
7e8923f757 CGE2: Add detection for the WIP English translation 2014-05-30 16:10:51 +02:00
uruk
e34113a94c CGE2: Fix assignments and deinitialization of _eye and _eyeTab. 2014-05-30 12:48:58 +02:00
Strangerke
5ad4e157e5 CGE2: Silence a warning in runCommand 2014-05-30 10:56:02 +02:00
Strangerke
8a712c840d CGE2: Fix several signed/unsigned comparisons 2014-05-30 10:52:10 +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
Strangerke
7ecb734a6a CGE2: Fix eyetab initialization 2014-05-30 10:41:32 +02:00
Strangerke
3035903f6f CGE2: Clarify a STUB warning 2014-05-30 10:41:14 +02:00
Strangerke
8654042d05 CGE2: Silence a warning by adding a safeguard in step() 2014-05-30 10:38:36 +02:00
Strangerke
6275f50d80 CGE2: Fix commandStat initialization 2014-05-30 10:33:57 +02:00
uruk
2c453f8f66 CGE2: Fix some warnings. 2014-05-30 10:30:16 +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
e6e0847b7b CGE2: Finish implementation of Sprite::setSeq(). 2014-05-29 18:24:55 +02:00