daily pastebin goal
75%
SHARE
TWEET

CMPartEgg.h

kevryan May 16th, 2016 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifndef __CM_PART_EGG_H__
  2. #define __CM_PART_EGG_H__
  3.  
  4. #include "CMPart.h"
  5.  
  6. NS_CC_BEGIN
  7.  
  8. class CMPartEgg : public CMPart
  9. {
  10. public:
  11.     CMPartEgg(int id, CMLevel *level, int type, TmPointInt32 pos, int partProcessFlags, int partActionFlags, int state, int rot);
  12.  
  13.     void onCreation(bool fromLoad);
  14.     void setInitialState(int state, bool alwaysUpdate=false);
  15.  
  16.     void postPhysicsUpdate(int time, int levelFrame);
  17.  
  18.     void crackEgg();
  19.  
  20.     void message(int messageType, CMPart *otherPart);
  21.     void postHandleCollision(CMPart *otherPart, cpArbiter *arb, bool isB=false);
  22.     int sensorBeginHandleCollision(CMPart *otherPart, cpArbiter *arb);
  23.  
  24.     void processExplosion(TmPointInt32 explosionSource, int maxDistSquared, int impulseAtSource, int impulseAtEdge);
  25.  
  26.     void flipGroup(int flags, TmPointInt32 centerPos);
  27.  
  28.     int eaten();
  29.     CMPartAttractsInfo *getAttractsInfo(CMPart *part);
  30.  
  31.     void setVisible(bool visible);
  32.  
  33.     cpBody  *mCpEggBody;
  34.  
  35. #define MAX_EGG_SPRITES 11
  36.     Sprite *mEggSprites[MAX_EGG_SPRITES];
  37.  
  38.     bool    mShouldCrack;
  39.     bool    mCracked;
  40.    
  41.     SoundResource mSoundResource;
  42. };
  43.  
  44. NS_CC_END
  45.  
  46. #endif
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top