#pragma once #include #include #include "util.h" typedef enum TerrainType { TERRAIN_FLAT, TERRAIN_HILL, TERRAIN_MOUNTAIN } TerrainType; typedef enum BuildingType { BUILDING_NONE, BUILDING_PORT, BUILDING_CITY, BUILDING_FORT } BuildingType; typedef struct MapTile { int player_id; TerrainType terrain_type; BuildingType building_type; gboolean is_radiated; gboolean is_defended; } MapTile; typedef struct World { unsigned int width, height; GArray *tiles; } World; World *World_random (unsigned int width, unsigned int height); void World_update (World *w); void World_render (World *w, SDL_Renderer *renderer);