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
|
a1b02870d8
|
Made the DraciEngine destructor free _font and _mouse.
svn-id: r41872
|
2009-06-25 16:02:00 +00:00 |
|
Denis Kasak
|
566dd20e4f
|
Renamed *cursorNum identifiers in Mouse to *cursorType for consistency.
svn-id: r41866
|
2009-06-25 15:08:49 +00:00 |
|
Denis Kasak
|
02dadc70fc
|
Implemented some more methods in Mouse so all mouse-related events are handled through it.
svn-id: r41861
|
2009-06-25 11:02:10 +00:00 |
|
Denis Kasak
|
c87f05b14c
|
Started work on the Mouse class.
svn-id: r41840
|
2009-06-24 23:58:30 +00:00 |
|
Denis Kasak
|
a4693b8639
|
Replaced return values with Common::k*Error constants.
svn-id: r41775
|
2009-06-22 19:31:18 +00:00 |
|
Denis Kasak
|
f15adff4d8
|
Updated the demo animation to use the new Surface features (transparency, dirty rects). Changed background to light grey. A transparent string is now drawn over the dragon sprite.
svn-id: r41658
|
2009-06-19 00:15:28 +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
|
efef9e4eff
|
Added kNumColours constant and replaced magic numbers with it.
svn-id: r41617
|
2009-06-17 23:11:24 +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
|
ca7d400dc3
|
Submitting changes to DraciEngine::go() mentioned in the last commit but omitted by accident. Removed superfluous BArchive::closeArchive() calls.
svn-id: r41552
|
2009-06-15 17:12:21 +00:00 |
|
Denis Kasak
|
326cf7e735
|
Added support for DFW format archives. Rewrote some BArchive methods to be able to seamlessly handle both BAR and DFW archives. Modified the BAFile struct to support both types of files. Tested it by enabling the mouse in the event loop (the cursor was stored in a DFW file). Added and rewrote docs to reflect the changes.
svn-id: r41533
|
2009-06-15 03:48:16 +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
|
149b45f7a5
|
Renamed DraciFont class to Font to be more consistent with the rest of the classes and other engines.
svn-id: r41523
|
2009-06-14 16:33:20 +00:00 |
|
Denis Kasak
|
15a35e359d
|
Changed DraciFont API to accept const Strings when loading fonts and added constants for font types.
svn-id: r41522
|
2009-06-14 16:21:44 +00:00 |
|
Denis Kasak
|
7e7e96e77d
|
Replaced a call to getEventManager() with Engine::_eventMan.
svn-id: r41518
|
2009-06-14 14:12:28 +00:00 |
|
Eugene Sandulenko
|
682c272e53
|
Replace hackish getch() with proper event loop at end of the demo.
svn-id: r41513
|
2009-06-14 13:49:28 +00:00 |
|
Eugene Sandulenko
|
34d41f61aa
|
Designate hack according to our conventions
svn-id: r41512
|
2009-06-14 13:41:12 +00:00 |
|
Denis Kasak
|
b8ec907ea0
|
Added a Sprite class for handling sprites in the Draci format transparently. Modified the test animation to use it.
svn-id: r41509
|
2009-06-14 12:44:12 +00:00 |
|
Denis Kasak
|
5808e4f940
|
Made DraciFont::drawString() return early if the string is too long to fit on the screen.
svn-id: r41475
|
2009-06-12 10:37:46 +00:00 |
|
Denis Kasak
|
32d12e90e3
|
Removed overflow/underflow checks from DraciFont::drawChar(). Instead, we now calculate the number of pixels that can be drawn without overflowing beforehand. Also added asserts to catch any negative value passed for the coordinates.
svn-id: r41471
|
2009-06-12 10:22:43 +00:00 |
|
Denis Kasak
|
a36a9a0398
|
Implemented font handling via the DraciFont class. Reprogrammed the test animation to use the original game fonts. Removed the old drawString() hack.
svn-id: r41454
|
2009-06-11 20:31:36 +00:00 |
|
Denis Kasak
|
4a9ec62e04
|
Removed special-casing for the colour black as it's no longer needed.
svn-id: r41440
|
2009-06-10 21:28:16 +00:00 |
|
Denis Kasak
|
78c07b83f8
|
Shifted the palette one bit to the left aft toemake the dragon animation brighter.
svn-id: r41439
|
2009-06-10 21:18:14 +00:00 |
|
Denis Kasak
|
b91f93716a
|
Code formatting
svn-id: r41438
|
2009-06-10 21:12:38 +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 |
|