mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-07-22 05:25:26 +00:00
5228800b73
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.
29 lines
539 B
C++
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
|