Commit Graph

9 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 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 cd78b97bce Calls to HumanPlayer and Camera button pressed event handlers are now automatically handled by two const arrays of member functions pointers. 2018-07-09 22:22:26 +02:00
XaviDCR92 f0b654b9bf Game has been restructured in favor of OOP 2018-07-09 19:26:13 +02:00
XaviDCR92 2cf2d608af + Added copy of BitmapEncoder
+ New sprite and unit "Town center"
* Provisional collision checking.
* Many other modifications.
2017-11-05 04:16:32 +01:00
XaviDCR92 786dccd2bc Removed Building and GameStructures modules. Restructured SW for Unit and Player, still a lot TODO 2017-09-08 18:39:22 +02:00
XaviDCR92 f416816883 * Nearest unit and/or building is found (no sqrt method used).
* Preliminar unit/building selection algorithm.
* Added cursor onscreen.
- Removed old Peasant sprites. Only 2 sprites needed!
2017-03-09 23:59:53 +01:00
XaviDCR92 8ec41b4410 + Initial commit. Added source, sprites and final executable. 2017-03-07 20:57:09 +01:00