From f030154fe727e25a2afe1f78b3998c2d2dba95e4 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Tue, 18 Aug 2009 09:24:15 +0000 Subject: astyle cleanup, corrects not loading of material textures --- src/game/base/racetrack.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'src/game/base/racetrack.h') diff --git a/src/game/base/racetrack.h b/src/game/base/racetrack.h index 80a5766..ef7375a 100644 --- a/src/game/base/racetrack.h +++ b/src/game/base/racetrack.h @@ -1,7 +1,7 @@ /* base/racetrack.h - This file is part of the Osirion project and is distributed under - the terms and conditions of the GNU General Public License version 2 + This file is part of the Osirion project and is distributed under + the terms and conditions of the GNU General Public License version 2 */ #ifndef __INCLUDED_BASE_RACETRACK_H__ @@ -13,14 +13,16 @@ #include -namespace game { +namespace game +{ class CheckPoint; /* ---- class RaceTrack -------------------------------------------- */ /// a race track entity -class RaceTrack : public core::EntityDynamic { +class RaceTrack : public core::EntityDynamic +{ public: /// default constructor @@ -33,7 +35,9 @@ public: typedef std::list CheckPoints ; /// the player who activated the race - inline core::Player *player() { return track_player; } + inline core::Player *player() { + return track_player; + } /// add a checkpoint to the racetrack void add_checkpoint(CheckPoint *checkpoint); @@ -46,20 +50,21 @@ public: /// run one time frame virtual void frame(float elapsed); - + private: CheckPoints track_checkpoints; core::Player *track_player; float track_racestart; float track_checkpointtime; CheckPoints::iterator track_checkpoint; - + }; /* ---- class CheckPoint ------------------------------------------- */ /// a checkpoint for the race track -class CheckPoint : public core::EntityDynamic { +class CheckPoint : public core::EntityDynamic +{ public: CheckPoint(RaceTrack *parent); ~CheckPoint(); -- cgit v1.2.3