1. Sylvain Rouquette
  2. pyGAP

Source

pyGAP / game / inc / state / state_state.h

#ifndef _STATE_STATE_
#define _STATE_STATE_


namespace renderer {
class Renderer;
}

namespace common {
class Log;
}

namespace input {
class CommandManager;
}


namespace state {


class State
{
public:
    State();
    virtual ~State() {}

    virtual void enter() {}
    virtual void leave() {}

    virtual int translate(input::CommandManager* command) { return 0; }
    virtual void update(unsigned int) = 0;
    virtual void render(renderer::Renderer* renderer) const = 0;

protected:
#if defined(DEBUG)
    common::Log*    log_;
#endif

};


} // namespace state


#endif // _STATE_STATE_