- Moved some files around for better organization
- Fixed compile errors in the other targets. - Added three test save files: one with a party not in a scenario, one with a party who has just entered Valley of Dying things, and one with the same party just after leaving town. - Added the new menu file for the game that I'm working on (not yet used) git-svn-id: http://openexile.googlecode.com/svn/trunk@53 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
45
osx/classes/location.h
Normal file
45
osx/classes/location.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* location.h
|
||||
* BoE
|
||||
*
|
||||
* Created by Celtic Minstrel on 20/04/09.
|
||||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
struct rectangle;
|
||||
|
||||
struct location {
|
||||
char x,y;
|
||||
|
||||
location();
|
||||
location(char a, char b);
|
||||
bool in(rectangle r);
|
||||
};
|
||||
|
||||
struct rectangle {
|
||||
char top, left, bottom, right;
|
||||
|
||||
rectangle();
|
||||
rectangle(location tl, location br);
|
||||
rectangle(char t, char l, char b, char r);
|
||||
bool contains(location p);
|
||||
};
|
||||
|
||||
struct shortloc {
|
||||
short x,y;
|
||||
};
|
||||
|
||||
bool operator == (location p1,location p2);
|
||||
bool operator != (location p1,location p2);
|
||||
bool operator == (rectangle r1, rectangle r2);
|
||||
bool operator != (rectangle r1, rectangle r2);
|
||||
short dist(location p1,location p2);
|
||||
short vdist(location p1,location p2);
|
||||
|
||||
location loc(char a, char b);
|
||||
location loc();
|
||||
rectangle rect();
|
||||
rectangle rect(location tl, location br);
|
||||
rectangle rect(char top, char left, char bottom, char right);
|
||||
Reference in New Issue
Block a user