summaryrefslogtreecommitdiff
path: root/Menu.cpp
Commit message (Collapse)AuthorAgeFilesLines
* * Increased MAX_SELECTION_DISTANCE, but this should be done according to ↵HEADmasterXaviDCR922018-08-051-0/+2
| | | | | | | | BaseUnit instead! + BaseUnit now takes a pointer to a Camera object. + Implemented Unit basic movement. + Initial stub for Coordinates class, meant to replace all manual X/Y coordinates handling between classes.
* * Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new ↵XaviDCR922018-07-261-32/+42
| | | | | | | | | | | | | 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-2/+9
| | | | reference to it.
* Fixed "includes/defines/local variables" headers.XaviDCR922018-07-091-15/+25
|
* Game has been restructured in favor of OOPXaviDCR922018-07-091-35/+82
|
* Removed Building and GameStructures modules. Restructured SW for Unit and ↵XaviDCR922017-09-081-12/+14
| | | | Player, still a lot TODO
* + Initial commit. Added source, sprites and final executable.XaviDCR922017-03-071-0/+54