ToyTouchableSprite.h 637 Bytes
//
//  ToyTouchableSprite.h
//  SteveMaggieCpp
//
//  Created by Katarzyna Kalinowska-Górska on 17.05.2017.
//
//

#ifndef ToyTouchableSprite_h
#define ToyTouchableSprite_h

#include "ToyPlainSprite.h"

class ToyTouchableSprite : public ToyPlainSprite
{
    public:
    
        static ToyTouchableSprite* createWithFile(const std::string& filename);
        virtual bool initWithFile(const std::string& filename) override;
    
        bool interactionEnabled;
        std::function<void(ToyTouchableSprite*)> touchBeganCallback;
    
    protected:
        virtual void configureTouchHandlers();
};

#endif /* ToyTouchableSprite_h */