HOG2
Classes | Enumerations | Functions | Variables
Map.h File Reference
#include <cassert>
#include <cmath>
#include <cstdarg>
#include <cstdio>
#include <unistd.h>
#include <iostream>
#include <stdint.h>
#include "GLUtil.h"
Include dependency graph for Map.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

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

Enumerations

enum  tTileset {
  kFall, kFallTile, kWinter, kWinterTile,
  kFast, kBitmap
}
 
enum  tDisplay { kPolygons, kLines, kPoints }
 
enum  tTerrain {
  kOutOfBounds =0x0, kOutOfBounds2 =0x1, kWater =0x10, kGround =0x20,
  kSwamp =0x21, kGrass =0x22, kBlight =0x23, kTrees =0x30,
  kUndefined =0x40
}
 
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

bool CanPass (long a, long b)
 

Variables

const int terrainBits = 4
 
const int kNoGraphNode = -1
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kUndefinedHeight 

Definition at line 89 of file Map.h.

◆ tCorner

enum tCorner
Enumerator
kNone 
kTopLeft 
kTopRight 
kBottomLeft 
kBottomRight 

Definition at line 96 of file Map.h.

◆ tDisplay

enum tDisplay
Enumerator
kPolygons 
kLines 
kPoints 

Definition at line 38 of file Map.h.

◆ tEdge

enum tEdge
Enumerator
kInternalEdge 
kLeftEdge 
kRightEdge 
kTopEdge 
kBottomEdge 

Definition at line 80 of file Map.h.

◆ tMapType

enum tMapType
Enumerator
kOctile 
kOctileCorner 
kSokoban 
kRaw 

Definition at line 120 of file Map.h.

◆ tSplit

enum tSplit
Enumerator
kNoSplit 
kForwardSplit 
kBackwardSplit 

Definition at line 67 of file Map.h.

◆ tSplitSide

enum tSplitSide
Enumerator
kWholeTile 
kLeftSide 
kRightSide 

Definition at line 74 of file Map.h.

◆ tTerrain

enum tTerrain
Enumerator
kOutOfBounds 
kOutOfBounds2 
kWater 
kGround 
kSwamp 
kGrass 
kBlight 
kTrees 
kUndefined 

Definition at line 51 of file Map.h.

◆ tTileset

enum tTileset
Enumerator
kFall 
kFallTile 
kWinter 
kWinterTile 
kFast 
kBitmap 

Definition at line 29 of file Map.h.

Function Documentation

◆ CanPass()

bool CanPass ( long  a,
long  b 
)
inline

Definition at line 63 of file Map.h.

Variable Documentation

◆ kNoGraphNode

const int kNoGraphNode = -1

◆ terrainBits

const int terrainBits = 4