- 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
45 lines
849 B
C++
45 lines
849 B
C++
/*
|
|
* vehicle.h
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 20/04/09.
|
|
*
|
|
*/
|
|
|
|
#include "location.h"
|
|
|
|
namespace legacy {
|
|
struct horse_record_type;
|
|
struct boat_record_type;
|
|
};
|
|
|
|
class cVehicle {
|
|
public:
|
|
// Both boats and horses use this type.
|
|
// If they demand different member functions, I'll derive from this class.
|
|
location loc;
|
|
location loc_in_sec;
|
|
location sector;
|
|
short which_town;
|
|
bool exists;
|
|
bool property;
|
|
|
|
cVehicle();
|
|
cVehicle& operator = (legacy::horse_record_type& old);
|
|
cVehicle& operator = (legacy::boat_record_type& old);
|
|
void writeTo(ostream& file);
|
|
};
|
|
|
|
/*
|
|
typedef struct {
|
|
location horse_loc,horse_loc_in_sec,horse_sector;
|
|
short which_town;
|
|
bool exists,property;
|
|
} horse_record_type;
|
|
typedef struct {
|
|
location boat_loc,boat_loc_in_sec,boat_sector;
|
|
short which_town;
|
|
bool exists,property;
|
|
} boat_record_type;
|
|
*/
|