- 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:
51
osx/classes/vehicle.cpp
Normal file
51
osx/classes/vehicle.cpp
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* vehicle.cpp
|
||||
* BoE
|
||||
*
|
||||
* Created by Celtic Minstrel on 20/04/09.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "classes.h"
|
||||
#include "oldstructs.h"
|
||||
|
||||
cVehicle::cVehicle() :
|
||||
//loc(0,0),
|
||||
//loc_in_sec(0,0),
|
||||
//sector(0,0),
|
||||
which_town(-1),
|
||||
exists(false),
|
||||
property(false) {
|
||||
// do nothing
|
||||
loc.x = 0; loc.y = 0;
|
||||
loc_in_sec.x = 0; loc_in_sec.y = 0;
|
||||
sector.x = 0; sector.y = 0;
|
||||
}
|
||||
|
||||
__attribute__((deprecated))
|
||||
cVehicle& cVehicle::operator = (legacy::horse_record_type& old){
|
||||
which_town = old.which_town;
|
||||
exists = old.exists;
|
||||
property = old.property;
|
||||
loc.x = old.horse_loc.x;
|
||||
loc.y = old.horse_loc.y;
|
||||
loc_in_sec.x = old.horse_loc_in_sec.x;
|
||||
loc_in_sec.y = old.horse_loc_in_sec.y;
|
||||
sector.x = old.horse_sector.x;
|
||||
sector.y = old.horse_sector.y;
|
||||
return *this;
|
||||
}
|
||||
|
||||
__attribute__((deprecated))
|
||||
cVehicle& cVehicle::operator = (legacy::boat_record_type& old){
|
||||
which_town = old.which_town;
|
||||
exists = old.exists;
|
||||
property = old.property;
|
||||
loc.x = old.boat_loc.x;
|
||||
loc.y = old.boat_loc.y;
|
||||
loc_in_sec.x = old.boat_loc_in_sec.x;
|
||||
loc_in_sec.y = old.boat_loc_in_sec.y;
|
||||
sector.x = old.boat_sector.x;
|
||||
sector.y = old.boat_sector.y;
|
||||
return *this;
|
||||
}
|
Reference in New Issue
Block a user