ToyTimerActionParser.h
969 Bytes
//
// ToyTimerActionParser.h
// WattsenglishToyApp
//
// Created by Katarzyna Kalinowska-Górska on 28/12/2019.
//
#ifndef ToyTimerActionParser_h
#define ToyTimerActionParser_h
#include "ToyActionParser.h"
class ToyTimerActionParser : public ToyActionParser
{
public:
static ToyTimerActionParser& getInstance()
{
static ToyTimerActionParser instance;
return instance;
};
cocos2d::Action* parseJSONAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished = true);
protected:
cocos2d::Action* parseStartTimerAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
cocos2d::Action* parseStopTimerAction(const rapidjson::Value& jsonActionObject, ActionParseDelegate* parseDelegate, bool notifyDelegateWhenFinished);
};
#endif /* ToyTimerActionParser_h */