Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOEntityDebugInspectorModule Class Reference

#include <OOEntityDebugInspectorModule.h>

+ Inheritance diagram for OOEntityDebugInspectorModule:
+ Collaboration diagram for OOEntityDebugInspectorModule:

Instance Methods

(IBAction) - inspectOwner:
 
(void) - update [implementation]
 
- Instance Methods inherited from OODebugInspectorModule
(id) - initWithObject:
 
(BOOL) - loadUserInterface
 
(NSString *) - nibName
 
(NSView *) - rootView
 
(id) - object
 
(void) - dealloc [implementation]
 

Private Attributes

IBOutlet NSTextField * _scanClassField
 
IBOutlet NSTextField * _statusField
 
IBOutlet NSTextField * _retainCountField
 
IBOutlet NSTextField * _positionField
 
IBOutlet NSTextField * _velocityField
 
IBOutlet NSTextField * _orientationField
 
IBOutlet NSTextField * _energyField
 
IBOutlet NSLevelIndicator * _energyIndicator
 
IBOutlet NSTextField * _ownerField
 
IBOutlet NSButton * _inspectOwnerButton
 

Detailed Description

Definition at line 34 of file OOEntityDebugInspectorModule.h.

Method Documentation

◆ inspectOwner:

- (IBAction) inspectOwner: (id) sender

Definition at line 1 of file OOEntityDebugInspectorModule.m.

38 :sender
39{
40 [[[self object] owner] inspect];
41}

◆ update

- (void) update
implementation

Reimplemented from OODebugInspectorModule.

Definition at line 1 of file OOEntityDebugInspectorModule.m.

45{
46 id object = [self object];
47 NSString *placeholder = InspectorUnknownValueString();
48
49 [_scanClassField setStringValue:[object inspScanClassLine] ?: placeholder];
50 [_statusField setStringValue:[object inspStatusLine] ?: placeholder];
51 [_retainCountField setStringValue:[object inspRetainCountLine] ?: @"0"];
52 [_positionField setStringValue:[object inspPositionLine] ?: placeholder];
53 [_velocityField setStringValue:[object inspVelocityLine] ?: placeholder];
54 [_orientationField setStringValue:[object inspOrientationLine] ?: placeholder];
55 [_energyField setStringValue:[object inspEnergyLine] ?: placeholder];
56 [_energyIndicator setFloatValue:object ? ([object energy] * 100.0f / [object maxEnergy]) : 0.0f];
57 [_ownerField setStringValue:[object inspOwnerLine] ?: @"None"];
58}
NSString * InspectorUnknownValueString(void)

Member Data Documentation

◆ _energyField

- (IBOutlet NSTextField*) _energyField
private

Definition at line 43 of file OOEntityDebugInspectorModule.h.

◆ _energyIndicator

- (IBOutlet NSLevelIndicator*) _energyIndicator
private

Definition at line 44 of file OOEntityDebugInspectorModule.h.

◆ _inspectOwnerButton

- (IBOutlet NSButton*) _inspectOwnerButton
private

Definition at line 46 of file OOEntityDebugInspectorModule.h.

◆ _orientationField

- (IBOutlet NSTextField*) _orientationField
private

Definition at line 42 of file OOEntityDebugInspectorModule.h.

◆ _ownerField

- (IBOutlet NSTextField*) _ownerField
private

Definition at line 45 of file OOEntityDebugInspectorModule.h.

◆ _positionField

- (IBOutlet NSTextField*) _positionField
private

Definition at line 40 of file OOEntityDebugInspectorModule.h.

◆ _retainCountField

- (IBOutlet NSTextField*) _retainCountField
private

Definition at line 39 of file OOEntityDebugInspectorModule.h.

◆ _scanClassField

- (IBOutlet NSTextField*) _scanClassField
private

Definition at line 37 of file OOEntityDebugInspectorModule.h.

◆ _statusField

- (IBOutlet NSTextField*) _statusField
private

Definition at line 38 of file OOEntityDebugInspectorModule.h.

◆ _velocityField

- (IBOutlet NSTextField*) _velocityField
private

Definition at line 41 of file OOEntityDebugInspectorModule.h.


The documentation for this class was generated from the following files: