//
//  Button.hpp
//  Game
//
//  Created by Darvydas on 27/01/2019.
//

#ifndef Button_hpp
#define Button_hpp

#include "cocos2d.h"

#include "Game/GameScene/World/Action.hpp"
#include "Game/GameScene/HUD/HUD.hpp"

namespace Game
{
    class CButton: public cocos2d::Sprite {
        
    public:
        
        static CButton *create(CAction* pcAction);
        
        CAction* m_pcAction;
        
        void setString(const char* szStr);
        
    public:
        
        cocos2d::Label* m_pcLabel;
        
    private:
        
        void createVisualElements();
                
    };
}

#endif /* Button_hpp */
