~zq79/jag-gt/trunk

« back to all changes in this revision

Viewing changes to src/game_objects/MenuButton.cpp

  • Committer: zq79
  • Date: 2015-10-25 19:03:52 UTC
  • Revision ID: p.tkaczyk79@gmail.com-20151025190352-xksbp1bmrv21guuj
teleporting and rotating tanks! ;x

important:
- new/fix: play state now is working (loaded, displayed, handles callbacks)
- new: tank object class initial implementation
- improve: updated tank's xml config
- fix: float compare fix
- new: gfx manager now uses pseudo reference counting for loaded textures

normal:
- improve: improvements and fixes for generic vector class
- improve/fix: game state and game objects update() method now receive time difference to correctly handle time based changes

small:
- new: all drawable object received z-order field to enforece correct drawing sequence

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
    return "MenuButton";
35
35
}
36
36
void
37
 
MenuButton::update()
 
37
MenuButton::update(boost::chrono::microseconds _sinceLastUpdate)
38
38
{
39
39
    AL al(__PRETTY_FUNCTION__);
40
40
    if(alive() == false)
41
41
        return;
42
 
    GameObjectDrawable::update();
 
42
    GameObjectDrawable::update(_sinceLastUpdate);
43
43
    if(m_state != STATE::MOUSE_OUTSIDE)
44
44
    {
45
45
        //handle clicked or hover states