HOG2
Functions
Sample.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void MyWindowHandler (unsigned long windowID, tWindowEventType eType)
 
void MyFrameHandler (unsigned long windowID, unsigned int viewport, void *data)
 
void MyDisplayHandler (unsigned long windowID, tKeyboardModifier, char key)
 
void MyPathfindingKeyHandler (unsigned long windowID, tKeyboardModifier, char key)
 
void MyRandomUnitKeyHandler (unsigned long windowID, tKeyboardModifier, char key)
 
int MyCLHandler (char *argument[], int maxNumArgs)
 
bool MyClickHandler (unsigned long windowID, int x, int y, point3d loc, tButtonType, tMouseEventType)
 
void InstallHandlers ()
 Allows you to install any keyboard handlers needed for program interaction. More...
 

Function Documentation

◆ InstallHandlers()

void InstallHandlers ( )

◆ MyCLHandler()

int MyCLHandler ( char *  argument[],
int  maxNumArgs 
)

Definition at line 226 of file Sample.cpp.

References bSaveAndQuit, doExport(), gDefaultMap, mazeSize, and Map::Save().

Referenced by InstallHandlers().

◆ MyClickHandler()

bool MyClickHandler ( unsigned long  windowID,
int  x,
int  y,
point3d  loc,
tButtonType  ,
tMouseEventType   
)

Definition at line 442 of file Sample.cpp.

References a1, a2, kMouseDown, kMouseDrag, kMouseUp, kRightButton, ma1, ma2, mouseTracking, px1, px2, py1, py2, runningSearch2, unitSims, xyLoc::x, and xyLoc::y.

Referenced by InstallHandlers().

◆ MyDisplayHandler()

void MyDisplayHandler ( unsigned long  windowID,
tKeyboardModifier  ,
char  key 
)

◆ MyFrameHandler()

void MyFrameHandler ( unsigned long  windowID,
unsigned int  viewport,
void *  data 
)

◆ MyPathfindingKeyHandler()

void MyPathfindingKeyHandler ( unsigned long  windowID,
tKeyboardModifier  ,
char  key 
)

◆ MyRandomUnitKeyHandler()

void MyRandomUnitKeyHandler ( unsigned long  windowID,
tKeyboardModifier  ,
char  key 
)

◆ MyWindowHandler()

void MyWindowHandler ( unsigned long  windowID,
tWindowEventType  eType 
)