From d0254f6bb715369b80b4340747e0ce30a009dfe6 Mon Sep 17 00:00:00 2001 From: Joursoir Date: Tue, 9 Mar 2021 21:15:47 +0000 Subject: add class GameWorld for generating world --- GameWorld.hpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 GameWorld.hpp (limited to 'GameWorld.hpp') diff --git a/GameWorld.hpp b/GameWorld.hpp new file mode 100644 index 0000000..c252bf2 --- /dev/null +++ b/GameWorld.hpp @@ -0,0 +1,17 @@ +#ifndef ASCIIROAD_GAMEWORLD_H +#define ASCIIROAD_GAMEWORLD_H + +class GameWorld { + char **world; + int w_y, w_x; +public: + GameWorld(int a_y, int a_x); + ~GameWorld(); + + bool Draw(const struct object_info *obj, int y, int x, + bool replace); + void RedrawCh(int y, int x); + void Update(); +}; + +#endif /* ASCIIROAD_GAMEWORLD_H */ -- cgit v1.2.3-18-g5258