Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit makes the main unit animation accessor / mutator functions applicable to const units, and makes the animation state member variables mutable to allow this. const'ed member functions: set standning idling selecting ghosted disabed_ghosted clear_haloes refresh invalidate redraw mutable member variables: animation state enum boost scoped pointer anim_ (can be reset in the redraw fcn) next_idling_ frame_begin_time_ unit_halo_ refreshing_ draw_bars_ The purpose of this is to improve encapsulation of units, as now we can use const units in the display functions, and reserve non- const unit references for use in the game logic.
- Loading branch information
Showing
2 changed files
with
31 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters