- Finally removed the grow box in the corner of the scenario editor window. - Changed #include <iostream> in several headers to #include <iosfwd>, since they were only present for the use of the ostream and istream classes, and cout/cin were unneeded. - Changed bool to Boolean in the old structs, since that's what it was originally. - Small changes to graphtool, including an overload of get_custom_rect. - Added gcd function to mathutil; was needed for something in the new dialog engine git-svn-id: http://openexile.googlecode.com/svn/trunk@71 4ebdad44-0ea0-11de-aab3-ff745001d230
50 lines
916 B
C++
50 lines
916 B
C++
/*
|
|
* vehicle.h
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 20/04/09.
|
|
*
|
|
*/
|
|
|
|
#ifndef VEHICLE_H
|
|
#define VEHICLE_H
|
|
|
|
#include <iosfwd>
|
|
#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(std::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;
|
|
*/
|
|
|
|
#endif |