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

#ifndef Dialogue_hpp
#define Dialogue_hpp

#include "cocos2d.h"
#include "Game/GameScene/World/Player.hpp"
#include "Game/GameScene/World/Objects/InteractiveObject.hpp"
#include "Game/GameScene/World/Button.hpp"

namespace Game
{
    static bool s_dialogueIsShowing = false;
    
    class Dialogue: public cocos2d::Sprite {
        
    public:
        
        static Dialogue *create(CPlayer* pcPlayer, Game::Objects::CInteractiveObject* obj);
        
        void onTouchBegan(cocos2d::Touch* touch, cocos2d::Event* event);
                
    private:
                
        void createVisualElements();
        
        
    private:
        
        CPlayer* m_pcPlayer;
        Game::Objects::CInteractiveObject* m_pcObj;
        
        std::vector<CButton*> m_vButtons;
        
    };
}

#endif /* Dialogue_hpp */
