Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 7:04:10 PM (15 years ago)
Author:
landauf
Message:

some small adjustments in all the new gametype classes

File:
1 edited

Legend:

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

    r3019 r3020  
    2121 *
    2222 *   Author:
    23  *      Fabian 'x3n' Landau
     23 *      Val Mikos
    2424 *   Co-authors:
    25  *      Val Mikos
     25 *      ...
    2626 *
    2727 */
    28 
    29 
    30 
    31 // setState und getState functions declare here
    32 // TeamBaseMatchBase class
    33 
    34 
    35 // save as TeamBaseMatchBase.h in objects/worldentities/pawns/TeamBaseMatchBase.h
    36 
    3728
    3829#ifndef _TeamBaseMatchBase_H__
     
    6152            TeamBaseMatchBase(BaseObject* creator);
    6253
    63             // if class closes, close everything 
     54            // if class closes, close everything
    6455            virtual ~TeamBaseMatchBase() {}
    65              
    66              
    67              
    68             // Set the state of a base to whatever the argument of the function is 
     56
     57
     58
     59            // Set the state of a base to whatever the argument of the function is
    6960            void setState(BaseState::Enum state)
    7061            {
    7162                this->state_ = state;
    7263                this->changeTeamColour();
    73             }
     64            }
    7465
    7566
    76             // Get the state of a base as a return value
    77             BaseState::Enum getState()
    78             {
    79                 return this->state_;
    80             }
     67            // Get the state of a base as a return value
     68            BaseState::Enum getState() const
     69            {
     70                return this->state_;
     71            }
    8172
    8273
Note: See TracChangeset for help on using the changeset viewer.