Commit Graph

7 Commits

Author SHA1 Message Date
XaviDCR92 4efe5ad6f9 * Sprite data width and height is now extracted from Sprite class. 2018-08-05 17:58:03 +02:00
XaviDCR92 c501d0e4e7 + Started unit selection implementation. Not finished yet. 2018-08-02 00:54:01 +02:00
XaviDCR92 c3a69de5c2 + BaseUnit.cpp, BaseUnit.h: added simple member functions for extracting BaseUnit protected data.
+ HumanPlayer.cpp: started implementing unit selection. Still TODO.
2018-07-26 21:22:28 +02:00
XaviDCR92 bfdc0b9f49 * Menu.cpp: actions for CHOICE_SINGLE_PLAYER_GAME have been moved to a new 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.
2018-07-26 21:15:59 +02:00
XaviDCR92 20936e9302 Camera is now an independent instance, and HumanPlayer only holds a reference to it. 2018-07-10 23:17:34 +02:00
XaviDCR92 14c12aeea3 More work on Unit/BaseUnit concepts. 2018-07-10 00:04:16 +02:00
XaviDCR92 188d74cb78 Unit renamed to BaseUnit. 2018-07-09 23:20:46 +02:00