Bouncing works but going too high causes an assertion.

This commit also reduces the jump size and the character's size.
This commit is contained in:
King_DuckZ 2014-08-03 15:13:54 +02:00
parent df8f5ca6b2
commit 164030202c
9 changed files with 82 additions and 7 deletions

View file

@ -28,6 +28,7 @@ namespace cloonel {
public:
float2 GetPos ( void ) const noexcept;
virtual void AddOffset ( const float2& parOffset ) noexcept;
virtual void SetAbsolutePosition ( const float2& parPos ) noexcept;
virtual void OnRegister ( Mover& parMover, Mover::PlaceableTicketType parParentTicket );
virtual void BeginMovement ( void );
@ -50,6 +51,12 @@ namespace cloonel {
inline float2 Placeable::GetPos() const noexcept {
return m_pos;
}
///--------------------------------------------------------------------------
///--------------------------------------------------------------------------
inline void Placeable::SetAbsolutePosition (const float2& parPos) noexcept {
m_pos = parPos;
}
} //namespace cloonel
#endif