metaforce/Runtime/Character/CCharAnimTime.hpp

63 lines
1.1 KiB
C++
Raw Normal View History

2016-02-13 09:02:47 +00:00
#ifndef __PSHAG_CCHARANIMTIME_HPP__
#define __PSHAG_CCHARANIMTIME_HPP__
2015-08-18 05:54:43 +00:00
2016-02-13 09:02:47 +00:00
namespace pshag
2015-08-18 05:54:43 +00:00
{
class CCharAnimTime
{
float m_time;
int m_unk; // enum?
public:
CCharAnimTime(float time)
: m_time(time),
m_unk(m_time != 0.0 ? 0 : 2)
{
}
bool EqualsZero()
{
if (m_unk == 1 || m_unk == 2 || m_unk == 3)
return false;
return (m_time == 0.0);
}
bool GreaterThanZero()
{
if (EqualsZero())
return false;
return (m_time != 0.0);
}
#if 0
bool operator>=(const CCharAnimTime& other)
{
if (*this == other)
return true;
return (*this > other);
}
2015-08-18 05:54:43 +00:00
bool operator<=(const CCharAnimTime& other)
{
if (*this == other)
return true;
return (*this < other);
}
void operator*=(const CCharAnimTime& other)
{ *this = *this * other; }
void operator+=(const CCharAnimTime& other)
{ *this = *this + other; }
void operator+(const CCharAnimTime& other)
{
}
#endif
};
2015-08-18 05:54:43 +00:00
}
2016-02-13 09:02:47 +00:00
#endif // __PSHAG_CCHARANIMTIME_HPP__