41{
42 AI *
object = [
self object];
45 NSString *pendingDesc =
nil;
46
47 [_stateMachineNameField setStringValue:[object
name] ?: placeholder];
48 [_stateField setStringValue:[object
state] ?: placeholder];
50 {
51 [_stackDepthField setIntegerValue:[object
stackDepth]];
52 [_timeToThinkField setStringValue:[NSString stringWithFormat:@"%.1f", [object
nextThinkTime] - [UNIVERSE getTime]]];
53 [_behaviourField setStringValue:OOStringFromBehaviour([[object
owner]
behaviour])];
55 }
56 else
57 {
58 [_stackDepthField setStringValue:placeholder];
59 [_timeToThinkField setStringValue:placeholder];
60 [_behaviourField setStringValue:placeholder];
61 [_frustrationField setStringValue:placeholder];
62 }
63
65 if ([pending
count] == 0)
66 {
67 pendingDesc = @"none";
68 }
69 else
70 {
71 pendingDesc = [[[pending allObjects] sortedArrayUsingSelector:@selector(caseInsensitiveCompare:)] componentsJoinedByString:@", "];
72 pendingDesc = [NSString stringWithFormat:@"%lu: %@", [pending count], pendingDesc];
73 }
74
75 [_pendingMessagesField setStringValue:pendingDesc];
76}
NSString * InspectorUnknownValueString(void)
NSMutableSet * pendingMessages
OOTimeAbsolute nextThinkTime