Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 21, 2009, 5:56:10 PM (16 years ago)
Author:
rgrieder
Message:

various small changes:

  • Fixed a bug in the GameStates concerning return type of virtual functions
  • Found some more C-style casts
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gui/src/core/GameState.h

    r2805 r2815  
    109109        void tickChild(const Clock& time) { if (this->getActiveChild()) this->getActiveChild()->tick(time); }
    110110
    111         virtual GameStateBase* getParent() const = 0;
     111        virtual GameStateBase* getParentAsBase() const = 0;
    112112        virtual void setParent(GameStateBase* state) = 0;
    113113
     
    146146        virtual ~GameState() { }
    147147
     148        GameStateBase* getParentAsBase() const
     149            { return parent_; }
     150
    148151        ParentType* getParent() const
    149152            { return parent_; }
Note: See TracChangeset for help on using the changeset viewer.