State.h
#pragma once
#ifndef __STATE__H_
#define __STATE__H_
#include "MessageEnum.h"
class GameObj;
class State
{
public:
virtual void execuete(GameObj*gameObj, MessageEnum messageEnum)=0;
};
#endif
RestState.h
#pragma once
#ifndef __REST_STATE_H_
#define __REST_STATE_H_
#include "State.h"
class RestState :public State
{
public:
virtual void execuete(GameObj*gameObj, MessageEnum messageEnum);
};
#endif
CodingState.h
#pragma once
#include "MessageEnum.h"
#include "State.h"
class GameObj;
class CodingState:public State
{
public :
virtual void execuete(GameObj*gameObj, MessageEnum messageEnum);
};
#pragma once
#ifndef __GAME_OBJ__H
#define __GAME_OBJ__H
#include "c