Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 27, 2009, 4:26:49 PM (15 years ago)
Author:
vmikos
Message:

fast endversion TeamBaseMatch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gametypes/src/orxonox/objects/worldentities/pawns/TeamBaseMatchBase.h

    r2903 r2934  
    3939#define _TeamBaseMatchBase_H__
    4040
    41 #include "pawn.h"
     41#include "Pawn.h"
    4242
    4343namespace orxonox
     
    5555    }
    5656
    57     struct Base
    58     {
    59         BaseState::Enum state_;
    60     };
    6157
    62 
    63 
    64 
    65 
    66 
    67     class _OrxonoxExport TeamBaseMatchBase : public RadarViewable
     58    class _OrxonoxExport TeamBaseMatchBase : public Pawn
    6859    {
    6960        public:
    7061            TeamBaseMatchBase(BaseObject* creator);
    7162
    72             // if class closes, close everything 
    73             virtual ~TeamBaseMatchBase();
    74            
    75             virtual void setState(base)
    76             {
    77                
    78 
     63            // if class closes, close everything 
     64            virtual ~TeamBaseMatchBase() {}
     65             
     66             
     67             
     68            // Set the state of a base to whatever the argument of the function is
     69            void setState(BaseState::Enum state)
     70            {
     71                this->state_ = state;
    7972            }
    80             virtual enum getState(base);
    81 
    82            
    8373
    8474
    85 
    86         protected:
     75            // Get the state of a base as a return value
     76            BaseState::Enum getState()
     77            {
     78                return this->state_;
     79            }
    8780
    8881
     82        protected:
    8983
    90 
    91 
    92  
     84            BaseState::Enum state_;
     85    };
    9386}
    9487
Note: See TracChangeset for help on using the changeset viewer.