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

Implement body state classes

This commit is contained in:
Jack Andersen
2017-07-09 18:55:51 -10:00
parent 778b37e0f8
commit 56bfc276d6
43 changed files with 4087 additions and 248 deletions

View File

@@ -80,7 +80,7 @@ bool CCharAnimTime::operator !=(const CCharAnimTime& other) const
return !(*this == other);
}
bool CCharAnimTime::operator>=(const CCharAnimTime& other)
bool CCharAnimTime::operator>=(const CCharAnimTime& other) const
{
if (*this == other)
return true;
@@ -88,7 +88,7 @@ bool CCharAnimTime::operator>=(const CCharAnimTime& other)
return (*this > other);
}
bool CCharAnimTime::operator<=(const CCharAnimTime& other)
bool CCharAnimTime::operator<=(const CCharAnimTime& other) const
{
if (*this == other)
return true;
@@ -162,7 +162,7 @@ CCharAnimTime& CCharAnimTime::operator+=(const CCharAnimTime& other)
return *this;
}
CCharAnimTime CCharAnimTime::operator+(const CCharAnimTime& other)
CCharAnimTime CCharAnimTime::operator+(const CCharAnimTime& other) const
{
if (x4_type == EType::Infinity && other.x4_type == EType::Infinity)
{
@@ -216,7 +216,7 @@ CCharAnimTime& CCharAnimTime::operator-=(const CCharAnimTime& other)
return *this;
}
CCharAnimTime CCharAnimTime::operator-(const CCharAnimTime& other)
CCharAnimTime CCharAnimTime::operator-(const CCharAnimTime& other) const
{
if (x4_type == EType::Infinity && other.x4_type == EType::Infinity)
{
@@ -266,7 +266,7 @@ CCharAnimTime CCharAnimTime::operator-(const CCharAnimTime& other)
return ret;
}
CCharAnimTime CCharAnimTime::operator*(const CCharAnimTime& other)
CCharAnimTime CCharAnimTime::operator*(const CCharAnimTime& other) const
{
if (x4_type == EType::Infinity && other.x4_type == EType::Infinity)
{
@@ -313,7 +313,7 @@ CCharAnimTime CCharAnimTime::operator*(const CCharAnimTime& other)
return ret;
}
CCharAnimTime CCharAnimTime::operator*(const float& other)
CCharAnimTime CCharAnimTime::operator*(const float& other) const
{
CCharAnimTime ret;
if (other == 0.f)
@@ -331,7 +331,7 @@ CCharAnimTime CCharAnimTime::operator*(const float& other)
return ret;
}
float CCharAnimTime::operator/(const CCharAnimTime& other)
float CCharAnimTime::operator/(const CCharAnimTime& other) const
{
if (other.EqualsZero())
return 0.f;