]> git.lizzy.rs Git - dungeon_game.git/blobdiff - plugins/game/game.h
Separate air_function chances for rooms and corridors
[dungeon_game.git] / plugins / game / game.h
index 60c1d615c0a1bac664dd4e537d03adcde0f234f9..656217e53ac342694784db25edd8b8b34e02d739 100644 (file)
@@ -63,10 +63,17 @@ struct list
        struct list *next;
 };
 
+enum mg_context
+{
+       MG_CTX_CORRIDOR,
+       MG_CTX_ROOM,
+};
+
 struct generator_function
 {
-       int chance;
-       void (*callback)(int x, int y);
+       int corridor_chance;
+       int room_chance;
+       void (*callback)(int x, int y, enum mg_context ctx);
 };
 
 struct input_handler
@@ -113,6 +120,7 @@ int max(int a, int b);
 int min(int a, int b);
 void *make_buffer(void *ptr, size_t size);
 double calculate_dtime(struct timespec from, struct timespec to);
+void get_roman_numeral(int number, char **ptr, size_t *len);
 
 void quit();
 bool player_dead();