diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/player.hpp | 2 | ||||
-rw-r--r-- | include/world.hpp | 11 |
2 files changed, 5 insertions, 8 deletions
diff --git a/include/player.hpp b/include/player.hpp index 430173f..1caccc8 100644 --- a/include/player.hpp +++ b/include/player.hpp @@ -5,6 +5,8 @@ #include <events.hpp> +constexpr const float PLAYER_SPEED_CONSTANT = 0.15f; + class PlayerSystem : public entityx::System<PlayerSystem>, public entityx::Receiver<PlayerSystem> { private: entityx::Entity::Id pid; diff --git a/include/world.hpp b/include/world.hpp index 36ccdfa..1f54292 100644 --- a/include/world.hpp +++ b/include/world.hpp @@ -9,10 +9,10 @@ // local game includes #include <common.hpp> #include <coolarray.hpp> - #include <events.hpp> #include <texture.hpp> #include <tinyxml2.h> +#include <components.hpp> using namespace tinyxml2; /** @@ -65,11 +65,6 @@ extern std::string currentXML; constexpr const unsigned int DAY_CYCLE = 10000; /** - * Defines the velocity of player when moved by the keyboard - */ -constexpr const float PLAYER_SPEED_CONSTANT = 0.15f; - -/** * Defines the strongest pull gravity can have on an entity. * This is the most that can be subtracted from an entity's velocity in one * game tick. @@ -165,8 +160,8 @@ public: void detect(entityx::TimeDelta dt); - void goWorldLeft(void) {} - void goWorldRight(void) {} + void goWorldLeft(Position& p); + void goWorldRight(Position& p); // worlddata2 stuff WorldData2 worldData; |