Files
0ad/source/graphics/UnitAnimation.h
T
Ykkrosh 5228800b73 # Fixed Linux build
Use noncopyable instead of boost::noncopyable. (But maybe this should be
changed to the NONCOPYABLE macro instead?)
Use boost::filesystem::wpath::file_string instead of
external_file_string, since the latter varies between std::string on
Linux and std::wstring on Windows.
Use wcstombs instead of wcstombs_s.
Use rtl_AllocateAligned instead of _mm_malloc.

This was SVN commit r6574.
2009-01-02 21:19:41 +00:00

29 lines
539 B
C++

#ifndef INCLUDED_UNITANIMATION
#define INCLUDED_UNITANIMATION
#include "ps/CStr.h"
class CUnit;
class CUnitAnimation : noncopyable
{
public:
CUnitAnimation(CUnit& unit);
// (All times are measured in seconds)
void SetAnimationState(const CStr& name, bool once, float speed, bool keepSelection);
void SetAnimationSync(float timeUntilActionPos);
void Update(float time);
private:
CUnit& m_Unit;
CStr m_State;
bool m_Looping;
float m_Speed;
float m_OriginalSpeed;
float m_TimeToNextSync;
};
#endif // INCLUDED_UNITANIMATION