52{
55 NSMutableSet *roles =
nil;
59 float level;
60 int fuel;
61
62 roles = [[[[object
roleSet]
roles] mutableCopy] autorelease];
63 [roles removeObject:primaryRole];
64
65 [_primaryRoleField setStringValue:primaryRole ?: placeholder];
66 if ([roles
count] != 0)
67 {
68 desc = [[[roles allObjects] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)] componentsJoinedByString:@", "];
69 [_otherRolesField setStringValue:desc];
70 }
71 else
72 {
73 [_otherRolesField setStringValue:placeholder];
74 }
75 [_targetField setStringValue:[object
inspTargetLine] ?: placeholder];
76 objAI = [object
getAI];
78 {
80 if ([desc hasSuffix:@".plist"]) desc = [desc stringByDeletingPathExtension];
81 desc = [NSString stringWithFormat:@"%@: %@", desc, [objAI
state]];
82 [_AIField setStringValue:desc];
83 }
84 else
85 {
86 [_AIField setStringValue:placeholder];
87 }
89 [_scriptField setStringValue:[[object
script]
name] ?: placeholder];
90
93
95 {
97 [_laserTempField setStringValue:[NSString stringWithFormat:@"%.2f", level]];
98 [_laserTempIndicator setFloatValue:level * 100.0];
100 [_cabinTempField setStringValue:[NSString stringWithFormat:@"%.2f", level]];
101 [_cabinTempIndicator setFloatValue:level * 100.0];
102 fuel = [object
fuel];
103 [_fuelField setStringValue:[NSString stringWithFormat:@"%.1f", (float)fuel / 10.0f]];
104 [_fuelIndicator setIntValue:fuel];
105 }
106 else
107 {
108 [_laserTempField setStringValue:placeholder];
109 [_laserTempIndicator setFloatValue:0];
110 [_cabinTempField setStringValue:placeholder];
111 [_cabinTempIndicator setFloatValue:0];
112 [_fuelField setStringValue:placeholder];
113 [_fuelIndicator setFloatValue:0];
114 }
115}
NSString * InspectorUnknownValueString(void)
NSString * inspDescription()
unsigned reportAIMessages
NSString * inspTargetLine()
OOShipGroup * rawEscortGroup()