summaryrefslogtreecommitdiffstats
path: root/src/motionspider.h
diff options
context:
space:
mode:
authoradiblol <adiblol@1tbps.org>2012-03-08 19:32:05 +0100
committeradiblol <adiblol@1tbps.org>2012-03-08 19:32:05 +0100
commita4c804b49ec872b71bd5a0167c3ad45704a3cc30 (patch)
tree8c931235247d662ca46a99695beb328fdfc8e8a8 /src/motionspider.h
downloadcolobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.tar.gz
colobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.tar.bz2
colobot-a4c804b49ec872b71bd5a0167c3ad45704a3cc30.zip
Initial commit, Copyright (C) 2001-2008, Daniel ROUX & EPSITEC SA, www.epsitec.ch
Diffstat (limited to 'src/motionspider.h')
-rw-r--r--src/motionspider.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/src/motionspider.h b/src/motionspider.h
new file mode 100644
index 0000000..b010a2c
--- /dev/null
+++ b/src/motionspider.h
@@ -0,0 +1,59 @@
+// motionspider.h
+
+#ifndef _MOTIONSPIDER_H_
+#define _MOTIONSPIDER_H_
+
+
+class CInstanceManager;
+class CEngine;
+class CLight;
+class CParticule;
+class CTerrain;
+class CCamera;
+class CBrain;
+class CPhysics;
+class CObject;
+
+
+#define MS_MARCH 0
+#define MS_STOP 1
+#define MS_SPEC 2
+
+#define MSS_BURN 0
+#define MSS_RUIN 1
+#define MSS_EXPLO 2
+#define MSS_BACK1 3
+#define MSS_BACK2 4
+#define MSS_BACK3 5
+
+
+class CMotionSpider : public CMotion
+{
+public:
+ CMotionSpider(CInstanceManager* iMan, CObject* object);
+ ~CMotionSpider();
+
+ void DeleteObject(BOOL bAll=FALSE);
+ BOOL Create(D3DVECTOR pos, float angle, ObjectType type, float power);
+ BOOL EventProcess(const Event &event);
+
+protected:
+ void CreatePhysics();
+ BOOL EventFrame(const Event &event);
+
+protected:
+ float m_armMember;
+ float m_armTimeAbs;
+ float m_armTimeMarch;
+ float m_armTimeAction;
+ short m_armAngles[3*4*4*3*3 + 3*4*4*6];
+ int m_armTimeIndex;
+ int m_armPartIndex;
+ int m_armMemberIndex;
+ int m_armLastAction;
+ BOOL m_bArmStop;
+ float m_lastParticule;
+};
+
+
+#endif //_MOTIONSPIDER_H_