diff options
author | Joursoir <chat@joursoir.net> | 2021-03-09 21:15:47 +0000 |
---|---|---|
committer | Joursoir <chat@joursoir.net> | 2021-03-09 21:15:47 +0000 |
commit | d0254f6bb715369b80b4340747e0ce30a009dfe6 (patch) | |
tree | 2ced13d48b3595c215713fdc353d9f10af9c5b5c /GameWorld.hpp | |
parent | cd445cccc1ccd135d006f6fbb519aeda8f90f133 (diff) | |
download | ascii-road-d0254f6bb715369b80b4340747e0ce30a009dfe6.tar.gz ascii-road-d0254f6bb715369b80b4340747e0ce30a009dfe6.tar.bz2 ascii-road-d0254f6bb715369b80b4340747e0ce30a009dfe6.zip |
add class GameWorld for generating world
Diffstat (limited to 'GameWorld.hpp')
-rw-r--r-- | GameWorld.hpp | 17 |
1 files changed, 17 insertions, 0 deletions
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 */ |