- Timestamp:
- Dec 5, 2018, 11:54:24 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/WorldMap_HS18/src/orxonox/controllers/StoryModeController.h
r12131 r12151 21 21 * 22 22 * Author: 23 * Fabian 'x3n' Landau23 * Joel Lingg 24 24 * Co-authors: 25 25 * ... … … 39 39 #include "worldentities/ControllableEntity.h" 40 40 #include "worldentities/pawns/SpaceShip.h" 41 42 43 #include "core/CoreIncludes.h" 44 45 #include "graphics/Camera.h" 41 46 #include "SMCoord.h" 47 //#include "core/XMLPort.h" 48 //#include "gamestates/GSLevel.h" 42 49 43 50 //#include <gtest/gtest.h> 44 51 #include "core/class/Identifier.h" 45 52 #include "core/class/IdentifierManager.h" 46 #include "core/command/ConsoleCommandIncludes.h"53 //#include "core/command/ConsoleCommandIncludes.h" 47 54 #include "core/command/CommandExecutor.h" 48 55 #include "core/object/Destroyable.h" … … 54 61 { 55 62 public: 63 // Implementation of a Controller needs the two following lines 56 64 StoryModeController(Context* context); 57 65 virtual ~StoryModeController(); 58 66 // As we extend SpaceShip but just are interested in the moment of function 67 // calling, we mark all the functions of spaceship to be override 59 68 virtual void tick(float dt) override; 60 69 virtual void moveFrontBack(const Vector2& value) override; … … 66 75 virtual void fired(unsigned int firemode) override; 67 76 virtual void boost(bool bBoost) override; 68 //virtual void switchCamera() override;77 69 78 79 80 private: 81 //Add to function to set and update the Position. As setPosition isn't available, we used setLocation 70 82 virtual void setLocation(int index); 71 bool moveRight_ ; 72 bool moveLeft_ ; 73 SMCoord* selectedPos_; 74 private: 75 virtual void updatePosition(); 83 virtual void updatePosition(); 84 85 //According to the position, this function starts the game. 86 virtual void chooseGame(); 87 88 SMCoord* selectedPos_; 89 90 //Variables to keep track of time 76 91 float time_; 77 92 int dtime_; 93 94 //Bools which get true as soon as the event they are named after has occured 95 bool moveRight_ ; 96 bool moveLeft_ ; 78 97 bool moveForward_; 79 98 bool moveBackward_; 80 99 bool boostPressed_; 81 virtual void chooseGame(); 100 bool init_; 101 82 102 83 103 };
Note: See TracChangeset
for help on using the changeset viewer.