![]() |
Oolite 1.91.0.7665-250419-c535bfe
|
#include <PlayerEntityContracts.h>
Definition at line 63 of file PlayerEntityContracts.h.
- (void) addMessageToReport: | (NSString*) | report |
Extends class PlayerEntity.
Definition at line 513 of file PlayerEntityContracts.m.
- (BOOL) addParcel: | (NSString*) | Name | |
start: | (unsigned) | start | |
destination: | (unsigned) | destination | |
eta: | (double) | eta | |
fee: | (double) | fee | |
premium: | (double) | premium | |
risk: | (unsigned) | risk |
Extends class PlayerEntity.
Definition at line 933 of file PlayerEntityContracts.m.
References PlayerEntity::addRoleToPlayer:, and ShipEntity::doScriptEvent:withArguments:.
- (BOOL) addPassenger: | (NSString*) | Name | |
start: | (unsigned) | start | |
destination: | (unsigned) | destination | |
eta: | (double) | eta | |
fee: | (double) | fee | |
advance: | (double) | advance | |
risk: | (unsigned) | risk |
Extends class PlayerEntity.
Definition at line 879 of file PlayerEntityContracts.m.
References PlayerEntity::addRoleToPlayer:, count, ShipEntity::doScriptEvent:withArguments:, and nil.
- (BOOL) awardContract: | (unsigned) | qty | |
commodity: | (NSString*) | commodity | |
start: | (unsigned) | start | |
destination: | (unsigned) | destination | |
eta: | (double) | eta | |
fee: | (double) | fee | |
premium: | (double) | premium |
Extends class PlayerEntity.
Definition at line 989 of file PlayerEntityContracts.m.
References PlayerEntity::addRoleToPlayer:, PlayerEntity::cargoQuantityOnBoard, ShipEntity::doScriptEvent:withArguments:, nil, Ranrot(), UNITS_GRAMS, UNITS_KILOGRAMS, and UNIVERSE.
- (BOOL) buySelectedShip |
Extends class PlayerEntity.
Definition at line 1726 of file PlayerEntityContracts.m.
References PlayerEntity::addEquipmentItem:withValidation:inContext:, buySelectedShip, GuiDisplayGen::colorFromSetting:defaultValue:, PlayerEntity::commanderDataDictionary, count, PlayerEntity::dockedStation, ShipEntity::doScriptEvent:withArguments:, OOColor::greenColor, GUI_ROW_MARKET_CASH, GUI_ROW_SHIPYARD_INFO_START, GuiDisplayGen::keyForRow:, StationEntity::localShipyard, PlayerEntity::newShipCommonSetup:yardInfo:baseInfo:, nil, GuiDisplayGen::objectForRow:, PASSENGER_BERTH_SPACE, GuiDisplayGen::selectedRow, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setColor:forRow:, ShipEntity::setEntityPersonalityInt:, PlayerEntity::setGuiToShipyardScreen:, ShipEntity::setStatus:, GuiDisplayGen::setText:forRow:, ShipEntity::shipDataKey, PlayerEntity::tradeInValue, PlayerEntity::trySellingCommodity:all:, and UNIVERSE.
Referenced by buySelectedShip.
- (NSString *) checkPassengerContracts |
Extends class PlayerEntity.
Definition at line 167 of file PlayerEntityContracts.m.
References PlayerEntity::addRoleToPlayer:, checkPassengerContracts, CONTRACT_KEY_RISK, PlayerEntity::decreaseContractReputation:, PlayerEntity::decreaseParcelReputation:, PlayerEntity::decreasePassengerReputation:, ShipEntity::doScriptEvent:withArguments:, PlayerEntity::increaseContractReputation:, PlayerEntity::increaseParcelReputation:, PlayerEntity::increasePassengerReputation:, nil, PASSENGER_KEY_NAME, randf(), and UNIVERSE.
Referenced by checkPassengerContracts.
- (OOCargoQuantity) contractedVolumeForGood: | (OOCommodityType) | good |
Extends class PlayerEntity.
Definition at line 497 of file PlayerEntityContracts.m.
- (NSArray *) contractList |
Extends class PlayerEntity.
Definition at line 1095 of file PlayerEntityContracts.m.
References contractList, and PlayerEntity::contractsListFromArray:forCargo:forParcels:.
Referenced by contractList.
- (int) contractReputation |
Extends class PlayerEntity.
Definition at line 681 of file PlayerEntityContracts.m.
References contractReputation, int(), and MAX_CONTRACT_REP.
Referenced by contractReputation.
|
implementation |
Extends class PlayerEntity.
Definition at line 1101 of file PlayerEntityContracts.m.
- (void) decreaseContractReputation: | (unsigned) | amount |
Extends class PlayerEntity.
Definition at line 726 of file PlayerEntityContracts.m.
References MAX_CONTRACT_REP.
- (void) decreaseParcelReputation: | (unsigned) | amount |
Extends class PlayerEntity.
Definition at line 651 of file PlayerEntityContracts.m.
References MAX_CONTRACT_REP.
- (void) decreasePassengerReputation: | (unsigned) | amount |
Extends class PlayerEntity.
Definition at line 576 of file PlayerEntityContracts.m.
References MAX_CONTRACT_REP.
- (void) erodeReputation |
Extends class PlayerEntity.
Definition at line 756 of file PlayerEntityContracts.m.
References erodeReputation, and MAX_CONTRACT_REP.
Referenced by erodeReputation.
- (void) increaseContractReputation: | (unsigned) | amount |
Extends class PlayerEntity.
Definition at line 696 of file PlayerEntityContracts.m.
References MAX_CONTRACT_REP.
- (void) increaseParcelReputation: | (unsigned) | amount |
Extends class PlayerEntity.
Definition at line 621 of file PlayerEntityContracts.m.
References MAX_CONTRACT_REP.
- (void) increasePassengerReputation: | (unsigned) | amount |
Extends class PlayerEntity.
Definition at line 546 of file PlayerEntityContracts.m.
References MAX_CONTRACT_REP.
- (NSInteger) missingSubEntitiesAdjustment |
Extends class PlayerEntity.
Definition at line 1697 of file PlayerEntityContracts.m.
References ShipEntity::maxShipSubEntities, missingSubEntitiesAdjustment, and ShipEntity::shipSubEntityEnumerator.
Referenced by missingSubEntitiesAdjustment.
- (void) newShipCommonSetup: | (NSString *) | shipKey | |
yardInfo: | (NSDictionary *) | ship_info | |
baseInfo: | (NSDictionary *) | ship_base_dict |
Extends class PlayerEntity.
Definition at line 1883 of file PlayerEntityContracts.m.
References PlayerEntity::addEquipmentItem:withValidation:inContext:, PlayerEntity::clearRolesFromPlayer:, ShipEntity::clearSubEntities, OOEquipmentType::equipmentTypeWithIdentifier:, ShipEntity::fuelCapacity, nil, OOWeaponTypeFromEquipmentIdentifierSloppy(), ShipEntity::removeAllEquipment, ShipEntity::setFuel:, ShipEntity::setShipClassName:, ShipEntity::setShipDataKey:, ShipEntity::setShipUniqueName:, ShipEntity::setUpSubEntities, ShipEntity::shipDataKey, PlayerEntity::tidyMissilePylons, WEAPON_FACING_AFT, WEAPON_FACING_FORWARD, WEAPON_FACING_PORT, and WEAPON_FACING_STARBOARD.
- (void) normaliseReputation |
Extends class PlayerEntity.
Definition at line 818 of file PlayerEntityContracts.m.
References MAX_CONTRACT_REP, and normaliseReputation.
Referenced by normaliseReputation.
- (NSArray *) parcelList |
Extends class PlayerEntity.
Definition at line 1089 of file PlayerEntityContracts.m.
References PlayerEntity::contractsListFromArray:forCargo:forParcels:, and parcelList.
Referenced by parcelList.
- (int) parcelReputation |
Extends class PlayerEntity.
Definition at line 606 of file PlayerEntityContracts.m.
References int(), MAX_CONTRACT_REP, and parcelReputation.
Referenced by parcelReputation.
- (NSArray *) passengerList |
Extends class PlayerEntity.
Definition at line 1083 of file PlayerEntityContracts.m.
References PlayerEntity::contractsListFromArray:forCargo:forParcels:, and passengerList.
Referenced by passengerList.
- (int) passengerReputation |
Extends class PlayerEntity.
Definition at line 531 of file PlayerEntityContracts.m.
References int(), MAX_CONTRACT_REP, and passengerReputation.
Referenced by passengerReputation.
- (OOCreditsQuantity) priceForShipKey: | (NSString *) | key |
Extends class PlayerEntity.
Definition at line 1446 of file PlayerEntityContracts.m.
- (NSString *) processEscapePods |
Extends class PlayerEntity.
Definition at line 63 of file PlayerEntityContracts.m.
References PlayerEntity::calculateCurrentCargo, count, ShipEntity::crew, OOCharacter::doScriptEvent:, ShipEntity::doScriptEvent:withArguments:, OOCharacter::infoForScripting, OOCharacter::insuranceCredits, OOCharacter::legacyScript, OOCharacter::name, nil, processEscapePods, Ranrot(), PlayerEntity::runUnsanitizedScriptActions:allowingAIMethods:withContextName:forTarget:, ShipEntity::setCrew:, OOCharacter::shortDescription, and UNIVERSE.
Referenced by processEscapePods.
- (BOOL) removeContract: | (NSString*) | commodity | |
destination: | (unsigned) | destination |
Extends class PlayerEntity.
Definition at line 1055 of file PlayerEntityContracts.m.
- (BOOL) removeParcel: | (NSString*) | Name |
Extends class PlayerEntity.
Definition at line 966 of file PlayerEntityContracts.m.
References count.
- (BOOL) removePassenger: | (NSString*) | Name |
Extends class PlayerEntity.
Definition at line 910 of file PlayerEntityContracts.m.
References count.
- (BOOL) replaceShipWithNamedShip: | (NSString *) | shipName |
Extends class PlayerEntity.
Definition at line 1842 of file PlayerEntityContracts.m.
References PlayerEntity::addEquipmentItem:withValidation:inContext:, PlayerEntity::commanderDataDictionary, ShipEntity::doScriptEvent:withArgument:, PlayerEntity::newShipCommonSetup:yardInfo:baseInfo:, nil, PASSENGER_BERTH_SPACE, ShipEntity::setEntityPersonalityInt:, OOShipRegistry::sharedRegistry, OOShipRegistry::shipInfoForKey:, and OOShipRegistry::shipyardInfoForKey:.
- (NSDictionary *) reputation |
Extends class PlayerEntity.
Definition at line 525 of file PlayerEntityContracts.m.
References reputation.
Referenced by PlayerEntity::dealloc, reputation, PlayerEntity::setCommanderDataFromDictionary:, and PlayerEntity::setUpAndConfirmOK:saveGame:.
- (void) setGuiToDockingReportScreen |
Extends class PlayerEntity.
Definition at line 1368 of file PlayerEntityContracts.m.
References GuiDisplayGen::addLongText:startingAtRow:align:, GuiDisplayGen::clearAndKeepBackground:, GuiDisplayGen::colorFromSetting:defaultValue:, ShipEntity::maxAvailableCargoSpace, nil, PlayerEntity::noteGUIDidChangeFrom:to:, GuiDisplayGen::setBackgroundTextureDescriptor:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setForegroundTextureKey:, setGuiToDockingReportScreen, PlayerEntity::setShowDemoShips:, GuiDisplayGen::setShowTextCursor:, GuiDisplayGen::setText:forRow:, GuiDisplayGen::setText:forRow:align:, and GuiDisplayGen::setTitle:.
Referenced by setGuiToDockingReportScreen.
- (void) setGuiToManifestScreen |
Extends class PlayerEntity.
Definition at line 1130 of file PlayerEntityContracts.m.
References PlayerEntity::cargoList, PlayerEntity::cargoQuantityOnBoard, GuiDisplayGen::clearAndKeepBackground:, GuiDisplayGen::colorFromSetting:defaultValue:, OOColor::darkGrayColor, DESC, OOColor::greenColor, MANIFEST_SCREEN_ROW_BACK, MANIFEST_SCREEN_ROW_NEXT, ShipEntity::maxAvailableCargoSpace, PlayerEntity::missionsList, nil, PlayerEntity::noteGUIDidChangeFrom:to:, OOExpandKey, GuiDisplayGen::overrideTabs:from:length:, PlayerEntity::passengerList, SET_MANIFEST_ROW, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setBackgroundTextureKey:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setForegroundTextureKey:, setGuiToManifestScreen, GuiDisplayGen::setKey:forRow:, GuiDisplayGen::setSelectableRange:, GuiDisplayGen::setSelectedRow:, PlayerEntity::setShowDemoShips:, GuiDisplayGen::setShowTextCursor:, GuiDisplayGen::setStatusPage:, GuiDisplayGen::setTabStops:, GuiDisplayGen::setTitle:, Entity::status, and GuiDisplayGen::statusPage.
Referenced by setGuiToManifestScreen.
- (void) setGuiToShipyardScreen: | (NSUInteger) | skip |
Extends class PlayerEntity.
Definition at line 1453 of file PlayerEntityContracts.m.
References GuiDisplayGen::clearAndKeepBackground:, GuiDisplayGen::colorFromSetting:defaultValue:, currentShipyard, PlayerEntity::dockedStation, StationEntity::equivalentTechLevel, StationEntity::generateShipyard:, OOColor::greenColor, GUI_ROW_SHIPYARD_START, int(), StationEntity::localShipyard, MAX_ROWS_SHIPS_FOR_SALE, nil, GuiDisplayGen::overrideTabs:from:length:, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setBackgroundTextureKey:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setFirstSelectableRow, GuiDisplayGen::setForegroundTextureKey:, GuiDisplayGen::setKey:forRow:, GuiDisplayGen::setNoSelectedRow, GuiDisplayGen::setSelectableRange:, PlayerEntity::setShowDemoShips:, GuiDisplayGen::setShowTextCursor:, GuiDisplayGen::setTabStops:, GuiDisplayGen::setText:forRow:align:, GuiDisplayGen::setTitle:, PlayerEntity::showShipyardInfoForSelection, and PlayerEntity::showTradeInInformationFooter.
- (void) setManifestScreenRow: | (id) | object | |
inColor: | (OOColor*) | color | |
forRow: | (OOGUIRow) | row | |
ofRows: | (OOGUIRow) | max_rows | |
andOffset: | (OOGUIRow) | offset | |
inMultipage: | (BOOL) | multi |
Extends class PlayerEntity.
Definition at line 1350 of file PlayerEntityContracts.m.
References GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setColor:forRow:, and GuiDisplayGen::setText:forRow:.
- (void) showShipyardInfoForSelection |
Extends class PlayerEntity.
Definition at line 1596 of file PlayerEntityContracts.m.
References GuiDisplayGen::addLongText:startingAtRow:align:, GuiDisplayGen::colorFromSetting:defaultValue:, count, OOColor::greenColor, GUI_ROW_MARKET_CASH, GUI_ROW_SHIPYARD_INFO_START, GuiDisplayGen::keyForRow:, GuiDisplayGen::objectForRow:, PASSENGER_BERTH_SPACE, GuiDisplayGen::selectedRow, GuiDisplayGen::setArray:forRow:, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setText:forRow:, showShipyardInfoForSelection, PlayerEntity::showShipyardModel:shipData:personality:, and PlayerEntity::showTradeInInformationFooter.
Referenced by showShipyardInfoForSelection.
- (void) showShipyardModel: | (NSString *) | shipKey | |
shipData: | (NSDictionary *) | shipDict | |
personality: | (uint16_t) | personality |
Extends class PlayerEntity.
Definition at line 1690 of file PlayerEntityContracts.m.
References nil, and PlayerEntity::showShipModelWithKey:shipData:personality:factorX:factorY:factorZ:inContext:.
- (void) showTradeInInformationFooter |
Extends class PlayerEntity.
Definition at line 1676 of file PlayerEntityContracts.m.
References GuiDisplayGen::colorFromSetting:defaultValue:, ShipEntity::displayName, GuiDisplayGen::setColor:forRow:, GuiDisplayGen::setText:forRow:, showTradeInInformationFooter, and PlayerEntity::tradeInValue.
Referenced by showTradeInInformationFooter.
|
implementation |
Extends class PlayerEntity.
Definition at line 1705 of file PlayerEntityContracts.m.