Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef __CM_PART_EGG_H__
- #define __CM_PART_EGG_H__
- #include "CMPart.h"
- NS_CC_BEGIN
- class CMPartEgg : public CMPart
- {
- public:
- CMPartEgg(int id, CMLevel *level, int type, TmPointInt32 pos, int partProcessFlags, int partActionFlags, int state, int rot);
- void onCreation(bool fromLoad);
- void setInitialState(int state, bool alwaysUpdate=false);
- void postPhysicsUpdate(int time, int levelFrame);
- void crackEgg();
- void message(int messageType, CMPart *otherPart);
- void postHandleCollision(CMPart *otherPart, cpArbiter *arb, bool isB=false);
- int sensorBeginHandleCollision(CMPart *otherPart, cpArbiter *arb);
- void processExplosion(TmPointInt32 explosionSource, int maxDistSquared, int impulseAtSource, int impulseAtEdge);
- void flipGroup(int flags, TmPointInt32 centerPos);
- int eaten();
- CMPartAttractsInfo *getAttractsInfo(CMPart *part);
- void setVisible(bool visible);
- cpBody *mCpEggBody;
- #define MAX_EGG_SPRITES 11
- Sprite *mEggSprites[MAX_EGG_SPRITES];
- bool mShouldCrack;
- bool mCracked;
- SoundResource mSoundResource;
- };
- NS_CC_END
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement