]> Dogcows Code - chaz/yoink/blobdiff - src/Character.hh
new lua scripting for scene loading
[chaz/yoink] / src / Character.hh
index 96ac499001110bf1882d5f93e3c2634f4aa265b2..0a3f9f40d0724a26e2fdbaa1457ec8f1ab7f9932 100644 (file)
@@ -123,7 +123,7 @@ struct Character : public Mf::Entity
                        return state;
                }
 
-               State operator+(State state) const
+               State operator+(const State& state) const
                {
                        State newState = *this;
                        newState.position +=  state.position;
@@ -143,6 +143,8 @@ private:
 
        static const Mf::Scalar z = 96.0;
 
+       Mf::Vector2 userForce;
+
        Mf::Tilemap             tilemap_;
        Mf::Animation   animation_;
 
@@ -150,13 +152,13 @@ private:
 
 public:
 
-       inline static CharacterP alloc(const std::string& name)
+       static CharacterP alloc(const std::string& name)
        {
                return CharacterP(new Character(name));
        }
 
        Character(const std::string& name);
-       inline virtual ~Character() {}
+       virtual ~Character() {}
 
        void update(Mf::Scalar t, Mf::Scalar dt);
        void handleEvent(const Mf::Event& event);
This page took 0.021936 seconds and 4 git commands to generate.