Blame view

ios/Runner/Wowgame/Classes/game_toy/ToySimpleActionParser.h 2.75 KB
cb213901   xiaoyu   添加一个游戏的源码和编译选项
1
  //
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
2
  //  ToySimpleActionParser.h
cb213901   xiaoyu   添加一个游戏的源码和编译选项
3
4
5
6
7
8
  //  SteveMaggieCpp
  //
  //  Created by Katarzyna Kalinowska-Górska on 31.05.2017.
  //
  //
  
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
9
10
  #ifndef ToySimpleActionParser_h
  #define ToySimpleActionParser_h
cb213901   xiaoyu   添加一个游戏的源码和编译选项
11
  
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
12
  #include "ToyActionParser.h"
cb213901   xiaoyu   添加一个游戏的源码和编译选项
13
  
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
14
  class ToySimpleActionParser
cb213901   xiaoyu   添加一个游戏的源码和编译选项
15
16
17
  {
       public:
  
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
18
          static ToySimpleActionParser& getInstance()
cb213901   xiaoyu   添加一个游戏的源码和编译选项
19
          {
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
20
              static ToySimpleActionParser instance;
cb213901   xiaoyu   添加一个游戏的源码和编译选项
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
              return instance;
          };
  
          cocos2d::Action* parseJSONAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished = true);
      
      protected:
          cocos2d::Action* parseWaitAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseCreateObjectAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseSetPropertyAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseCallFunctionAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parsePlaySoundAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parsePlayRandomSoundAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseReorderInParentAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseAnimateObjectsAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseAnimateObjectByAnimationIdAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseStopAnimationsAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseDismissCurrentDialogAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* parseRandomObjectSwapAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
          cocos2d::Action* finalizeParseActionWithActionFunction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished, std::function<void()> preparedActionFunction);
  };
  
5daad4bc   xiaoyu   游戏源码添加编译(现存问题:游戏内...
42
  #endif /* ToySimpleActionParser_h */
cb213901   xiaoyu   添加一个游戏的源码和编译选项