Advertisement
Guest User

Untitled

a guest
Jun 28th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. #ifndef __FACTORY_H__
  2. #define __FACTORY_H__
  3.  
  4. #include "cocos2d.h"
  5.  
  6. USING_NS_CC;
  7.  
  8. class Factory : public Node
  9. {
  10. public:
  11.    
  12.     Node* pNode;
  13.    
  14.     int factoryState = 0;
  15.     int factoryTimer = 60;
  16.     int factoryCrono = 60;
  17.    
  18.     Factory (void);//Costruttore
  19.     ~Factory (void);//Distruttore
  20.    
  21.     bool init(Node* aNode);//argument
  22.    
  23.     static Factory * create(Node* aNode);//argument
  24.    
  25.     void update(float dt);
  26.    
  27.     void spawn();
  28.    
  29. };
  30.  
  31. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement