From 9f784e81f81651bed087902f9f3afee113e56148 Mon Sep 17 00:00:00 2001 From: Piotr Dziwinski Date: Tue, 19 Jun 2012 20:11:47 +0200 Subject: Switched to new implementation of the rest of math module - changed structs from D3DVECTOR to Math::Vector and from D3DMATRIX to Math::Matrix - changed functions to new Math namespace functions - moved mainmovie module from graphics to object - added Get and Set to Math::Matrix --- src/object/motion/motion.cpp | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/object/motion/motion.cpp') diff --git a/src/object/motion/motion.cpp b/src/object/motion/motion.cpp index 255feb7..f769dae 100644 --- a/src/object/motion/motion.cpp +++ b/src/object/motion/motion.cpp @@ -69,9 +69,9 @@ CMotion::CMotion(CInstanceManager* iMan, CObject* object) m_actionTime = 0.0f; m_progress = 0.0f; - m_linVibration = D3DVECTOR(0.0f, 0.0f, 0.0f); - m_cirVibration = D3DVECTOR(0.0f, 0.0f, 0.0f); - m_inclinaison = D3DVECTOR(0.0f, 0.0f, 0.0f); + m_linVibration = Math::Vector(0.0f, 0.0f, 0.0f); + m_cirVibration = Math::Vector(0.0f, 0.0f, 0.0f); + m_inclinaison = Math::Vector(0.0f, 0.0f, 0.0f); } // Object's destructor. @@ -101,7 +101,7 @@ void CMotion::SetBrain(CBrain* brain) // Creates. -bool CMotion::Create(D3DVECTOR pos, float angle, ObjectType type, float power) +bool CMotion::Create(Math::Vector pos, float angle, ObjectType type, float power) { return true; } @@ -110,7 +110,7 @@ bool CMotion::Create(D3DVECTOR pos, float angle, ObjectType type, float power) bool CMotion::EventProcess(const Event &event) { - D3DVECTOR pos, dir; + Math::Vector pos, dir; float time; if ( m_object->RetType() != OBJECT_TOTO && @@ -221,36 +221,36 @@ bool CMotion::Read(char *line) // Gives the linear vibration. -void CMotion::SetLinVibration(D3DVECTOR dir) +void CMotion::SetLinVibration(Math::Vector dir) { m_linVibration = dir; } -D3DVECTOR CMotion::RetLinVibration() +Math::Vector CMotion::RetLinVibration() { return m_linVibration; } // Gives the circular vibration. -void CMotion::SetCirVibration(D3DVECTOR dir) +void CMotion::SetCirVibration(Math::Vector dir) { m_cirVibration = dir; } -D3DVECTOR CMotion::RetCirVibration() +Math::Vector CMotion::RetCirVibration() { return m_cirVibration; } // Gives the tilt. -void CMotion::SetInclinaison(D3DVECTOR dir) +void CMotion::SetInclinaison(Math::Vector dir) { m_inclinaison = dir; } -D3DVECTOR CMotion::RetInclinaison() +Math::Vector CMotion::RetInclinaison() { return m_inclinaison; } -- cgit v1.2.3-1-g7c22