View difference between Paste ID: Ud4ymKNS and GKsaLDS7
SHOW: | | - or go back to the newest paste.
1
/////////////////////////////////////////////////////////////////////////////////////////////////////////
2
// RpgMakerPlugin
3
// Movement.h
4
// 
5-
// Code : Anael Seghezzi edited by Giuseppe Alfieri
5+
// Code :  Giuseppe Alfieri (thanks Anael Seghezzi)
6
/////////////////////////////////////////////////////////////////////////////////////////////////////////
7
8-
#ifndef _MY_BEHAVIOR_H
8+
#ifndef _MOVEMENT_H
9-
#define _MY_BEHAVIOR_H
9+
#define _MOVEMENT_H
10
11
#include <MEngine.h>
12
13
14
class Movement : public MBehavior
15
{
16
public:
17
18
	// constructors / destructors
19
	Movement(MObject3d * parentObject);
20
	Movement(Movement & behavior, MObject3d * parentObject);
21
	~Movement(void);
22
23
private:
24
	
25
	// custom variables
26
	bool animated;
27
	float m_rotationSpeed;
28
	bool autoRotate;
29
	float m_speed;
30
	float m_flySpeed;
31
	char  *m_pattern;
32
	bool cycle;
33
	
34
public:
35
36
	// destroy
37
	void destroy(void);
38
39
	// get new
40
	static MBehavior * getNew(MObject3d * parentObject);
41
42
	// get copy
43
	MBehavior * getCopy(MObject3d * parentObject);
44
45
	// name
46
	static const char * getStaticName(void){ return "Movement"; }
47
	const char * getName(void){ return getStaticName(); }
48
49
	// variables
50
	unsigned int getVariablesNumber(void);
51
	MVariable getVariable(unsigned int id);
52
53
	// events (virtuals from MBehavior class)
54
	void update(void);
55
	void runEvent(int param){}
56
};
57
58
#endif