Public Member Functions | Public Attributes

CGrid Class Reference

Inherits IMapperPlugin.

List of all members.

Public Member Functions

string GetName ()
void Render (uint layer)
bool Message (string& message)
void RenderMap ()
bool MouseDown (int)
bool MouseUp (int)
void MouseMove (int, int)
bool KeyDown (uint8 key)
bool KeyUp (uint8)
void InputLost ()
void Loop ()

Public Attributes

private bool edgeGrid = true
private uint edgeGridMinZoom = 5
private uint edgeGridMaxZoom = 1500
private uint edgeGridColor = COLOR_RGB(200, 200, 200)
private bool tileGrid = true
private uint tileGridDiv = 10
private uint tileGridMinZoom = 5
private uint tileGridMaxZoom = 1500
private uint tileGridColor = COLOR_RGBA(130, 130, 130, 160)
private uint tileGridColor2 = COLOR_RGBA(160, 160, 160, 240)
private bool hexGrid = false
private uint hexGridSize = 8
private uint hexGridMinZoom = 5
private uint hexGridMaxZoom = 1500
private uint hexGridColor = COLOR_RGBA(190, 190, 100, 120)
private bool enabled = true
private uint color = COLOR_RGB(160, 160, 160)

Member Function Documentation

string GetName (  ) 
void Render ( uint  layer  ) 

Implements IMapperPlugin.

bool Message ( string message  ) 

Implements IMapperPlugin.

void RenderMap (  ) 

Implements IMapperPlugin.

bool MouseDown ( int   ) 

Implements IMapperPlugin.

bool MouseUp ( int   ) 

Implements IMapperPlugin.

void MouseMove ( int  ,
int   
)

Implements IMapperPlugin.

bool KeyDown ( uint8  key  ) 

Implements IMapperPlugin.

bool KeyUp ( uint8   ) 

Implements IMapperPlugin.

void InputLost (  ) 

Implements IMapperPlugin.

void Loop (  ) 

Implements IMapperPlugin.


Member Data Documentation

private bool edgeGrid = true
private uint edgeGridMinZoom = 5
private uint edgeGridMaxZoom = 1500
private uint edgeGridColor = COLOR_RGB(200, 200, 200)
private bool tileGrid = true
private uint tileGridDiv = 10
private uint tileGridMinZoom = 5
private uint tileGridMaxZoom = 1500
private uint tileGridColor = COLOR_RGBA(130, 130, 130, 160)
private uint tileGridColor2 = COLOR_RGBA(160, 160, 160, 240)
private bool hexGrid = false
private uint hexGridSize = 8
private uint hexGridMinZoom = 5
private uint hexGridMaxZoom = 1500
private uint hexGridColor = COLOR_RGBA(190, 190, 100, 120)
private bool enabled = true
private uint color = COLOR_RGB(160, 160, 160)