2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 11:07:44 +00:00

Change how GIT revision information is handled

Add Cook to SCAN
Prelim CCharAnimTime
This commit is contained in:
2016-01-04 16:48:10 -08:00
parent 769a20d9dc
commit 106cb940d3
3 changed files with 71 additions and 4 deletions

View File

@@ -6,8 +6,57 @@ namespace Retro
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);
}
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
};
}
#endif // __RETRO_CCHARANIMTIME_HPP__