Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9061 in orxonox.OLD for trunk/src/world_entities/playable.h


Ignore:
Timestamp:
Jul 3, 2006, 6:39:10 PM (19 years ago)
Author:
patrick
Message:

merged the single_player branche to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/playable.h

    r8724 r9061  
    5656
    5757  // Player Settup
     58  bool hasPlayer(){return !(this->currentPlayer == NULL);}
    5859  bool setPlayer(Player* player);
    5960  Player* getCurrentPlayer() const { return this->currentPlayer; };
     
    7475  inline int  getScore() { return this->score; }
    7576
     77  void setEnterRadius(float radius) { this->enterRadius = radius; };
     78  /** @returns the EnterRadius (how far away a Player must be to enter this entity) */
     79  inline float getEnterRadius() const { return this->enterRadius; };
    7680
    7781  // WorldEntity Extensions
     
    116120  Playable::Playmode    playmode;           //!< The current playmode.
    117121
     122  float                 enterRadius;        //!< How far one can be away from the Playable to enter it.
     123
    118124  WorldEntity* collider;
    119125};
Note: See TracChangeset for help on using the changeset viewer.