Add an offset in HorzCollisionBar and reset it at the beginning of every frame.

This commit is contained in:
King_DuckZ 2014-08-01 16:41:55 +02:00
parent cdd37fead7
commit 3522ce37a3
8 changed files with 67 additions and 10 deletions

View file

@ -27,12 +27,13 @@ namespace cloonel {
class Placeable {
public:
float2 GetPos ( void ) const noexcept;
void AddOffset ( const float2& parOffset ) noexcept;
virtual void AddOffset ( const float2& parOffset ) noexcept;
virtual void OnRegister ( Mover& parMover, Mover::PlaceableTicketType parParentTicket );
virtual void BeginMovement ( void );
protected:
explicit Placeable ( float2 parPos );
~Placeable ( void ) noexcept = default;
virtual ~Placeable ( void ) noexcept = default;
private:
float2 m_pos;