Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 18, 2019, 3:00:44 PM (5 years ago)
Author:
ahuwyler
Message:

A Stone is in the game/ Templates are ajusted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/OrxoBlox_FS19/src/modules/OrxoBlox/OrxoBlox.h

    r12288 r12307  
    7474            virtual void spawnPlayer(PlayerInfo* player) override; //!< Spawns the input player.
    7575
    76             virtual void playerScored(PlayerInfo* player, int score = 1) override; //!< Is called when the player scored.
     76           
    7777
    7878            /**
     
    8282            void setCenterpoint(OrxoBloxCenterpoint* center)
    8383                { this->center_ = center; }
    84             void setConfigValues(); //!< Makes scoreLimit configurable.
    8584
    86             PlayerInfo* getLeftPlayer() const; //!< Get the left player.
     85            OrxoBloxCenterpoint* getCenterpoint(void)
     86                { return this->center_; }
    8787
    8888        protected:
    8989            virtual void spawnPlayersIfRequested() override; //!< Spawns players, and fills the rest up with bots.
    90 
     90        private:
     91            void startWall(void);
     92            void createWall(void);
    9193            void startBall(); //!< Starts the ball with some default speed.
    9294            void cleanup(); //!< Cleans up the Gametype by destroying the ball and the bats.
     
    9496            WeakPtr<OrxoBloxCenterpoint> center_; //!< The playing field.
    9597            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
    97101            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           
    99103            WeakPtr<OrxoBloxWall> futureWall_;
     104            WeakPtr<OrxoBloxWall> activeWalls_[6]; //6 is the number of wallls in the game.
    100105    };
    101106}
Note: See TracChangeset for help on using the changeset viewer.