mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-07-06 00:06:00 -04:00
--Code changes
-Convert all enums to class enum to be consistent with C++11 style. -Convert some if/else statements in filter classes to case statements. -Add overloaded stream operators to print various enums.
This commit is contained in:
@ -69,11 +69,10 @@ public:
|
||||
/// <param name="other">The MotionParam object to copy.</param>
|
||||
/// <returns>Reference to updated self</returns>
|
||||
template <typename U>
|
||||
MotionParam &operator = (const MotionParam<U>& other)
|
||||
MotionParam& operator = (const MotionParam<U>& other)
|
||||
{
|
||||
this->first = other.first;
|
||||
this->second = T(other.second);
|
||||
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
@ -94,7 +93,7 @@ public:
|
||||
EmberMotion()
|
||||
{
|
||||
m_MotionFreq = 0;
|
||||
m_MotionFunc = MOTION_SIN;
|
||||
m_MotionFunc = eMotion::MOTION_SIN;
|
||||
m_MotionOffset = 0;
|
||||
}
|
||||
|
||||
@ -135,7 +134,7 @@ public:
|
||||
/// <param name="other">The EmberMotion object to copy.</param>
|
||||
/// <returns>Reference to updated self</returns>
|
||||
template <typename U>
|
||||
EmberMotion &operator = (const EmberMotion<U>& other)
|
||||
EmberMotion& operator = (const EmberMotion<U>& other)
|
||||
{
|
||||
CopyVec(m_MotionParams, other.m_MotionParams);
|
||||
m_MotionFunc = other.m_MotionFunc;
|
||||
|
Reference in New Issue
Block a user