Dungeonator  1.0.0
a dungeon generator library
Typedefs | Enumerations | Functions
tile.h File Reference

the include file for the potential tiles in a grid More...

#include <stdio.h>

Go to the source code of this file.

Typedefs

typedef enum Tiles Tile
 

Enumerations

enum  Tiles { WALL , FLOOR , DOOR }
 

Functions

char getCharacterForTile (Tile tile)
 

Detailed Description

the include file for the potential tiles in a grid

Typedef Documentation

◆ Tile

typedef enum Tiles Tile

the types of tiles that can be part of a grid

Enumeration Type Documentation

◆ Tiles

enum Tiles

the types of tiles that can be part of a grid

Enumerator
WALL 

a wall tile (doesn't have to be next to floor)

FLOOR 

air/floor tile

DOOR 

another name for a connection between two rooms

Function Documentation

◆ getCharacterForTile()

char getCharacterForTile ( Tile  tile)

get a character from the tile enum

  • WALL -> '#'
  • FLOOR -> '.'
  • DOOR -> '+'
Parameters
[in]tilethe tile to get the character for
Returns
the character