Also update player proxy

This commit is contained in:
cim 2013-08-21 18:24:48 +01:00
parent 835410934e
commit de4c3ed3f4
2 changed files with 20 additions and 0 deletions

View File

@ -40,6 +40,7 @@ MA 02110-1301, USA.
OOCompassMode _compassMode;
OOAlertCondition _alertCondition;
NSUInteger _trumbleCount;
NSUInteger _tradeInFactor;
unsigned _massLocked: 1,
_atHyperspeed: 1,
_dialIdentEngaged: 1;
@ -92,6 +93,9 @@ MA 02110-1301, USA.
- (NSUInteger) trumbleCount;
- (void) setTrumbleCount:(NSUInteger)value;
- (void) setTradeInFactor:(int)tif;
- (int) tradeInFactor;
@end

View File

@ -37,6 +37,7 @@ MA 02110-1301, USA.
[self setDialAftShield:1.0f];
[self setDialFuelScoopStatus:[self hasScoop] ? SCOOP_STATUS_OKAY : SCOOP_STATUS_NOT_INSTALLED];
[self setCompassMode:[self hasEquipmentItem:@"EQ_ADVANCED_COMPASS"] ? COMPASS_MODE_PLANET : COMPASS_MODE_BASIC];
[self setTradeInFactor:95];
}
return self;
@ -58,6 +59,8 @@ MA 02110-1301, USA.
[self setDialIdentEngaged:[player dialIdentEngaged]];
[self setAlertCondition:[player alertCondition]];
[self setTrumbleCount:[player trumbleCount]];
[self setTradeInFactor:[player tradeInFactor]];
}
@ -189,6 +192,19 @@ MA 02110-1301, USA.
}
- (void) setTradeInFactor:(int)tif
{
_tradeInFactor = tif;
}
- (int) tradeInFactor
{
return _tradeInFactor;
}
// If you're here to add more properties, don't forget to update -copyValuesFromPlayer:.
@end