TimerActionParser.h 942 Bytes
//
//  TimerActionParser.h
//  WattsenglishToyApp
//
//  Created by Katarzyna Kalinowska-Górska on 28/12/2019.
//

#ifndef TimerActionParser_h
#define TimerActionParser_h

#include "ActionParser.h"

class TimerActionParser : public ActionParser
{
     public:

        static TimerActionParser& getInstance()
        {
            static TimerActionParser 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 /* TimerActionParser_h */