summaryrefslogtreecommitdiff
path: root/Camera.h
Commit message (Collapse)AuthorAgeFilesLines
* * Sprite data width and height is now extracted from Sprite class.XaviDCR922018-08-051-11/+24
|
* * Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new ↵XaviDCR922018-07-261-11/+8
| | | | | | | | | | | | | function called MainMenuSinglePlayer(). + BaseUnit.cpp, BaseUnit.h: new _selected flag. + Camera.cpp, Camera.h: linear movement has been taken over quadratic movement. Also, cursor now moves if dealing with screen borders. + Cursor.cpp, Cursor.h: new Cursor class holds cursor X/Y information. It is meant to be contained inside a HumanPlayer object. * Game.cpp: minor changes in casts and comments. + HumanPlayer.cpp: added callbacks for button release events. * HumanPlayer.cpp, HumanPlayerBtn.cpp: button handling has been transferred from HumanPlayer.cpp to HumanPlayerBtn.cpp in order to improve modularity. + Sprite.cpp: sprite data was not being checked against NULL. - Unit.cpp: drawHandler() is now executed by Player object.
* Camera is now an independent instance, and HumanPlayer only holds a ↵XaviDCR922018-07-101-1/+5
| | | | reference to it.
* Calls to HumanPlayer and Camera button pressed event handlers are now ↵XaviDCR922018-07-091-0/+1
| | | | automatically handled by two const arrays of member functions pointers.
* Game has been restructured in favor of OOPXaviDCR922018-07-091-42/+30
|
* + Added copy of BitmapEncoderXaviDCR922017-11-051-1/+1
| | | | | | + New sprite and unit "Town center" * Provisional collision checking. * Many other modifications.
* Removed Building and GameStructures modules. Restructured SW for Unit and ↵XaviDCR922017-09-081-11/+23
| | | | Player, still a lot TODO
* * Nearest unit and/or building is found (no sqrt method used).XaviDCR922017-03-091-0/+3
| | | | | | * Preliminar unit/building selection algorithm. * Added cursor onscreen. - Removed old Peasant sprites. Only 2 sprites needed!
* + Initial commit. Added source, sprites and final executable.XaviDCR922017-03-071-0/+41