2024-03-21 16:01:47 -03:00
|
|
|
#ifndef XNA_GAME_GAME_HPP
|
|
|
|
#define XNA_GAME_GAME_HPP
|
|
|
|
|
|
|
|
#include "../enums.hpp"
|
|
|
|
#include "../forward.hpp"
|
|
|
|
#include "../types.hpp"
|
|
|
|
#include "time.hpp"
|
|
|
|
#include "window.hpp"
|
|
|
|
|
|
|
|
namespace xna {
|
|
|
|
class IGame {
|
|
|
|
public:
|
|
|
|
virtual ~IGame(){}
|
|
|
|
|
|
|
|
virtual void Exit() = 0;
|
|
|
|
virtual int Run() = 0;
|
2024-03-30 14:25:08 -03:00
|
|
|
virtual PGameWindow Window() = 0;
|
2024-03-21 16:01:47 -03:00
|
|
|
|
|
|
|
protected:
|
|
|
|
virtual void Draw(GameTime const& gameTime) = 0;
|
|
|
|
virtual void Initialize() = 0;
|
2024-03-30 14:25:08 -03:00
|
|
|
virtual void Update(GameTime const& gameTime) = 0;
|
2024-03-21 16:01:47 -03:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|