Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

/util/map.h File Reference

#include <cassert>
#include <cmath>
#include <cstdarg>
#include <cstdio>
#include <unistd.h>
#include <iostream>
#include "glUtil.h"
#include "graph.h"

Include dependency graph for map.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Classes

class  halfTile
class  Map
 A tile-based representation of the world. More...

class  Tile

Enumerations

enum  tTileset {
  kFall, kFallTile, kWinter, kWinterTile,
  kFast
}
enum  tDisplay { kPolygons, kLines, kPoints }
enum  tTerrain {
  kOutOfBounds = 0x0, kOutOfBounds2 = 0x1, kWater = 0x10, kGround = 0x20,
  kSwamp = 0x21, kGrass = 0x22, kBlight = 0x23, kTrees = 0x30,
  kUndefined
}
enum  tSplit { kNoSplit = 0, kForwardSplit = 1, kBackwardSplit = 2 }
enum  tSplitSide { kWholeTile = 1, kLeftSide = 2, kRightSide = 3 }
enum  tEdge {
  kInternalEdge, kLeftEdge, kRightEdge, kTopEdge,
  kBottomEdge
}
enum  { kUndefinedHeight = -999 }
enum  tCorner {
  kNone = 0, kTopLeft = 1, kTopRight = 2, kBottomLeft = 3,
  kBottomRight = 4
}
enum  tMapType { kOctile, kOctileCorner, kSokoban, kRaw }

Functions

void makeMaze (Map *map, int pathSize=1)
 makeMaze(map, pathsize)


Variables

const double ONE = 1.0f
const double TWO = 2.0f
const double ROOT_TWO = 1.414213562f
const double ONE_OVER_ROOT_TWO = 1.0/ROOT_TWO
const int terrainBits = 4
const int kNoGraphNode = -1

Enumeration Type Documentation

anonymous enum
 

Enumeration values:
kUndefinedHeight 

enum tCorner
 

Enumeration values:
kNone 
kTopLeft 
kTopRight 
kBottomLeft 
kBottomRight 

enum tDisplay
 

Enumeration values:
kPolygons 
kLines 
kPoints 

enum tEdge
 

Enumeration values:
kInternalEdge 
kLeftEdge 
kRightEdge 
kTopEdge 
kBottomEdge 

enum tMapType
 

Enumeration values:
kOctile 
kOctileCorner 
kSokoban 
kRaw 

enum tSplit
 

Enumeration values:
kNoSplit 
kForwardSplit 
kBackwardSplit 

enum tSplitSide
 

Enumeration values:
kWholeTile 
kLeftSide 
kRightSide 

enum tTerrain
 

Enumeration values:
kOutOfBounds 
kOutOfBounds2 
kWater 
kGround 
kSwamp 
kGrass 
kBlight 
kTrees 
kUndefined 

enum tTileset
 

Enumeration values:
kFall 
kFallTile 
kWinter 
kWinterTile 
kFast 


Function Documentation

void makeMaze Map map,
int  pathSize
 

makeMaze(map, pathsize)

A cheap function I hacked together to make psuedo mazes. The only good values for pathSize are 1 and 3.


Variable Documentation

const int kNoGraphNode = -1
 

const double ONE = 1.0f [static]
 

const double ONE_OVER_ROOT_TWO = 1.0/ROOT_TWO [static]
 

const double ROOT_TWO = 1.414213562f [static]
 

const int terrainBits = 4
 

const double TWO = 2.0f [static]
 


Generated on Tue Aug 18 03:41:40 2009 for HOG by doxygen 1.3.4