- Timestamp:
- Apr 18, 2019, 3:00:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.h
r12288 r12307 74 74 virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player. 75 75 76 virtual void playerScored(PlayerInfo* player, int score = 1) override; //!< Is called when the player scored.76 77 77 78 78 /** … … 82 82 void setCenterpoint(OrxoBloxCenterpoint* center) 83 83 { this->center_ = center; } 84 void setConfigValues(); //!< Makes scoreLimit configurable.85 84 86 PlayerInfo* getLeftPlayer() const; //!< Get the left player. 85 OrxoBloxCenterpoint* getCenterpoint(void) 86 { return this->center_; } 87 87 88 88 protected: 89 89 virtual void spawnPlayersIfRequested() override; //!< Spawns players, and fills the rest up with bots. 90 90 private: 91 void startWall(void); 92 void createWall(void); 91 93 void startBall(); //!< Starts the ball with some default speed. 92 94 void cleanup(); //!< Cleans up the Gametype by destroying the ball and the bats. … … 94 96 WeakPtr<OrxoBloxCenterpoint> center_; //!< The playing field. 95 97 WeakPtr<OrxoBloxBall> ball_; //!< The OrxoBlox ball. 96 WeakPtr<OrxoBloxBat> bat_[1]; //!< The two bats. 98 WeakPtr<OrxoBloxBat> bat_[0]; //!< The two bats. 99 PlayerInfo* player_; 100 97 101 Timer starttimer_; //!< A timer to delay the start of the game. 98 int scoreLimit_; //!< If a player scored that much points, the game is ended.102 99 103 WeakPtr<OrxoBloxWall> futureWall_; 104 WeakPtr<OrxoBloxWall> activeWalls_[6]; //6 is the number of wallls in the game. 100 105 }; 101 106 }
Note: See TracChangeset
for help on using the changeset viewer.