Denis Kasak
e9669b8e2b
* Moved event handling to DraciEngine::handleEvents()
...
* Added Game::start() method which is called from DraciEngine::go()
* Made Game::loop() suitable for calling from other places (like GPL scripts) by handling events, redrawing the screen, etc from inside. This way it doesn't freeze the game if it doesn't return immediately.
* Added Game::shouldQuit() and Game::setQuit() which can be used to signal the engine to quit.
* Fixed race condition related to mouse buttons not getting released.
* Instead of deleting frames for the title animation and adding a new one, reset the text for its frame.
svn-id: r42875
2009-07-29 01:11:53 +00:00
Denis Kasak
d28658984d
* Added DraciEngine::_initArchive and made Game use it. Fixes a memory bug because Game uses pointers from the init archive which should outlive it (but didn't previously).
...
* Added support for setting loop status to Game.
* Made some GPL commands check whether we are in the correct loop status before executing.
svn-id: r42731
2009-07-25 03:28:04 +00:00
Denis Kasak
652acfc4ca
* Added WalkingMaps class
...
* Added DraciEngine::walkingMapsArchive
* Made Game::loadRoom() read in the current walking map
svn-id: r42541
2009-07-16 18:31:15 +00:00
Denis Kasak
e031709989
Added _iconsArchive to DraciEngine and modified the Mouse class to use it.
...
svn-id: r42535
2009-07-16 16:06:29 +00:00
Denis Kasak
a4a3ad123c
Renamed Font::setFont() to loadFont(). Removed DraciEngine::_font and added _smallFont and _bigFont so each font can be handled separately.
...
svn-id: r42514
2009-07-15 18:16:54 +00:00
Denis Kasak
218a15d890
Made _rnd member of DraciEngine public.
...
svn-id: r42190
2009-07-06 19:22:13 +00:00
Denis Kasak
8e341ee968
Renaming Animation -> AnimationManager and AnimObj -> Animation in light of the new API change.
...
svn-id: r42133
2009-07-05 11:52:17 +00:00
Denis Kasak
b1d6377aa1
Added _animationsArchive member to DraciEngine.
...
svn-id: r42091
2009-07-04 14:54:22 +00:00
Denis Kasak
1853d594b8
Enabled loading room number 1 as a test.
...
svn-id: r42071
2009-07-03 17:55:28 +00:00
Denis Kasak
52642e2dc9
Added two more debug levels (logic and animation).
...
svn-id: r42065
2009-07-03 16:35:04 +00:00
Denis Kasak
cac39d8295
Added rooms and overlays archives.
...
svn-id: r42035
2009-07-02 19:57:09 +00:00
Denis Kasak
be3c0461d6
DraciEngine now opens and stores pointers to essential archives. Changed code that used those archives to use that instead of opening them manually. Replaced BArchive::operator[] functionality with BArchive::getFile() to prevent ugliness when accessing archives via pointers.
...
svn-id: r42031
2009-07-02 16:15:32 +00:00
Denis Kasak
1e70f25fcf
Added Script instance to DraciEngine. Restored disassembling of a demo script on engine startup (previously via gpldisasm(), now via _script->run()).
...
svn-id: r41921
2009-06-27 15:26:33 +00:00
Denis Kasak
0430939006
Added Game's constructor. Added the Person struct and made Game constructor read in the list of persons from INIT.DFW. Added Game instance to DraciEngine.
...
svn-id: r41907
2009-06-27 01:04:24 +00:00
Denis Kasak
c87f05b14c
Started work on the Mouse class.
...
svn-id: r41840
2009-06-24 23:58:30 +00:00
Denis Kasak
0ff3c1945f
Changed _screenWidth and _screenHeight from member variables to constants because the screen size doesn't change.
...
svn-id: r41620
2009-06-18 00:33:16 +00:00
Denis Kasak
491800c19a
Changed the _font DraciEngine member from a Font instance to a pointer to an instance. This way the default constructor is invoked in DraciEngine::init() and can properly initialize the fonts because the game data paths are set.
...
svn-id: r41612
2009-06-17 21:07:59 +00:00
Denis Kasak
997b37eff1
Began work on the Screen class. Modified the demo animation to use the it.
...
svn-id: r41604
2009-06-17 04:48:48 +00:00
Denis Kasak
718f84fb97
Added a Font _font variable to the engine instance. Fixed font colour handling by replacing the appropriate colours before drawing. Added Font::setColour() method for changing the current font colour. Added include guards to draci/font.h. Moved kFontBig and kFontSmall constants to draci/font.cpp to prevent redefinition errors.
...
svn-id: r41524
2009-06-14 18:59:31 +00:00
Denis Kasak
2c00d65501
Added an additional debuglevel "archiver" to facilitate displaying debug info from the BAR archiver. Also adjusted numeric debug levels.
...
svn-id: r41436
2009-06-10 18:18:09 +00:00
Denis Kasak
39a8c71f77
Adding Draci Historie engine skeleton (engine stub, BAR archiver, rudimentary GPL disassembler)
...
svn-id: r41390
2009-06-08 22:18:52 +00:00