Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- // RpgMakerPlugin
- // Movement.h
- //
- // Code : Anael Seghezzi edited by Giuseppe Alfieri
- /////////////////////////////////////////////////////////////////////////////////////////////////////////
- #ifndef _MY_BEHAVIOR_H
- #define _MY_BEHAVIOR_H
- #include <MEngine.h>
- class Movement : public MBehavior
- {
- public:
- // constructors / destructors
- Movement(MObject3d * parentObject);
- Movement(Movement & behavior, MObject3d * parentObject);
- ~Movement(void);
- private:
- // custom variables
- bool animated;
- float m_rotationSpeed;
- bool autoRotate;
- float m_speed;
- float m_flySpeed;
- char *m_pattern;
- bool cycle;
- public:
- // destroy
- void destroy(void);
- // get new
- static MBehavior * getNew(MObject3d * parentObject);
- // get copy
- MBehavior * getCopy(MObject3d * parentObject);
- // name
- static const char * getStaticName(void){ return "Movement"; }
- const char * getName(void){ return getStaticName(); }
- // variables
- unsigned int getVariablesNumber(void);
- MVariable getVariable(unsigned int id);
- // events (virtuals from MBehavior class)
- void update(void);
- void runEvent(int param){}
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement