Initial Import of Win32 Classic Blades of Exile and associated Scenario Editor codes.
Chokboyz git-svn-id: http://openexile.googlecode.com/svn/trunk@70 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
24
Win32/Blades of Exile/LOCATION.H
Normal file
24
Win32/Blades of Exile/LOCATION.H
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef _LOCATION_H
|
||||
#define _LOCATION_H
|
||||
|
||||
struct location
|
||||
{
|
||||
char x, y;
|
||||
|
||||
/* functions */
|
||||
location() : x(0), y(0) { }
|
||||
location(int ix, int iy) { x = ix; y = iy; }
|
||||
location toGlobal(); /* convert local coordinates to global*/
|
||||
location toLocal(); /* convert global coordinates to local*/
|
||||
location randomShift();
|
||||
|
||||
short countWalls() const; /* count number of walls around */
|
||||
short handleLever(); /* call dialog and eventually pull lever */
|
||||
void crumbleWall();
|
||||
bool isDoor() const;
|
||||
|
||||
void pickLock(short pcNum);
|
||||
void bashDoor(short pcNum);
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user