Age | Commit message (Collapse) | Author |
|
|
|
svn-id: r48359
|
|
svn-id: r46320
|
|
not enough)
svn-id: r46101
|
|
svn-id: r45765
|
|
The Sprite class points to the original buffer (which is cached in the memory
thanks to BArchive machinery) instead of allocating its own buffer and
copying the source there.
svn-id: r45594
|
|
svn-id: r45524
|
|
Also, add comments to the last commit.
svn-id: r45511
|
|
svn-id: r44802
|
|
svn-id: r44493
|
|
- Remove use of tabs for formatting, now in nearly all cases tabs are only used for indentation
- Use "uint" instead of "unsigned int" in the whole engine for consistency's sake
- Strip some trailing tabs and leading whitespaces
svn-id: r44478
|
|
coordinates and scaling.
It is no longer needed to modify the underlying animations when drawing them
on the screen or testing pixels in them. Read access is enough, because
the displacement of the object is passed as a parameter.
Added some more const's where they logically belong.
svn-id: r44419
|
|
svn-id: r44362
|
|
svn-id: r44331
|
|
svn-id: r43159
|
|
when setting a new string. Implemented Text::getLength().
svn-id: r42990
|
|
or scaled)
* Made the Text class internally store a Common::String instead of a byte *
svn-id: r42835
|
|
Drawable's private members protected so they can access them
* Added Text::drawScaled() and altered Text::getRect() so Text instances can be accessed through a Drawable pointer. Scaling text is planned for later because it's not essential.
svn-id: r42789
|
|
Sprite and Text.
* Changed some Drawable members from uint16 to uint.
* Added some const qualifiers to methods of Drawable.
svn-id: r42648
|
|
* Now each Sprite (and hence frame in an animation) can have a separate zoom (which is needed for some animations in the game)
* Scale factors are not stored any more; instead, we only store scaled dimensions (since these are stored in the data files) and calculate the factors from those.
svn-id: r42647
|
|
* Made the dragon scale when it is in different parts of the room
* Added getters for relative coordinates (Animation::getRelativeX() and Animation::getRelativeY())
* Commented Game::loop() and Sprite::draw*() methods in more detail
svn-id: r42627
|
|
animation can have a different delay.
svn-id: r42427
|
|
* Made columnwise parameter mandatory
* Made Sprite coordinates signed (the engine sometimes uses negative coordinates)
* Prevented overflow when drawing sprites in some cases
svn-id: r42100
|
|
svn-id: r42074
|
|
svn-id: r42067
|
|
whether to mark a dirty rect for a particular draw (also added such support to the Font class since it's needed by Text). Made spacing parameters for Text instances mandatory.
svn-id: r42066
|
|
svn-id: r41999
|
|
Sprite and Class. Made transforming from columnwise a default (since it was done most of the time anyway). Changed coordinates to use uint instead of uint16.
svn-id: r41996
|
|
they're no longer just C-like struct containers. Implemented getters/setters accordingly and changed existing code that used those classes.
svn-id: r41995
|
|
to use them.
svn-id: r41984
|
|
svn-id: r41982
|
|
svn-id: r41981
|
|
svn-id: r41979
|
|
* Added Surface and Screen docs
* Small documentation fixes
svn-id: r41779
|
|
svn-id: r41654
|
|
svn-id: r41605
|
|
svn-id: r41600
|
|
Modified the test animation to use it.
svn-id: r41509
|