Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
Entity.h File Reference
import "OOCocoa.h"
import "OOMaths.h"
import "OOCacheManager.h"
import "OOTypes.h"
import "OOWeakReference.h"
import "OOColor.h"
#include "OOEntityStatus.tbl"
#include "OOScanClass.tbl"
+ Include dependency graph for Entity.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Entity
 
protocol  <OOBeaconEntity>
 

Macros

#define NO_DRAW_DISTANCE_FACTOR   1024.0
 
#define ABSOLUTE_NO_DRAW_DISTANCE2   (2500.0 * 2500.0 * NO_DRAW_DISTANCE_FACTOR * NO_DRAW_DISTANCE_FACTOR)
 
#define SCANNER_MAX_RANGE   25600.0
 
#define SCANNER_MAX_RANGE2   655360000.0
 
#define CLOSE_COLLISION_CHECK_MAX_RANGE2   1000000000.0
 
#define ENTRY(label, value)
 

Typedefs

typedef enum OOEntityStatus OOEntityStatus
 
typedef enum OOScanClass OOScanClass
 

Enumerations

enum  OOEntityStatus
 
enum  OOScanClass
 
enum  { kOOEntityStatusDefault = STATUS_INACTIVE , kOOScanClassDefault = CLASS_NOT_SET }
 

Functions

NSString * OOStringFromEntityStatus (OOEntityStatus status) CONST_FUNC
 
OOEntityStatus OOEntityStatusFromString (NSString *string) PURE_FUNC
 
NSString * OOStringFromScanClass (OOScanClass scanClass) CONST_FUNC
 
OOScanClass OOScanClassFromString (NSString *string) PURE_FUNC
 

Variables

uint32_t gLiveEntityCount
 
size_t gTotalEntityMemory
 

Macro Definition Documentation

◆ ABSOLUTE_NO_DRAW_DISTANCE2

#define ABSOLUTE_NO_DRAW_DISTANCE2   (2500.0 * 2500.0 * NO_DRAW_DISTANCE_FACTOR * NO_DRAW_DISTANCE_FACTOR)

Definition at line 47 of file Entity.h.

◆ CLOSE_COLLISION_CHECK_MAX_RANGE2

#define CLOSE_COLLISION_CHECK_MAX_RANGE2   1000000000.0

Definition at line 54 of file Entity.h.

◆ ENTRY

#define ENTRY ( label,
value )
Value:
label = value,

Definition at line 57 of file Entity.h.

◆ NO_DRAW_DISTANCE_FACTOR

#define NO_DRAW_DISTANCE_FACTOR   1024.0

Definition at line 46 of file Entity.h.

◆ SCANNER_MAX_RANGE

#define SCANNER_MAX_RANGE   25600.0

◆ SCANNER_MAX_RANGE2

#define SCANNER_MAX_RANGE2   655360000.0

Definition at line 52 of file Entity.h.

Referenced by ShipEntity::alertCondition.

Typedef Documentation

◆ OOEntityStatus

◆ OOScanClass

typedef enum OOScanClass OOScanClass

Definition at line 67 of file Entity.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
kOOEntityStatusDefault 
kOOScanClassDefault 

Definition at line 322 of file Entity.h.

323{
324 // Values used for unknown strings.
325 kOOEntityStatusDefault = STATUS_INACTIVE,
326 kOOScanClassDefault = CLASS_NOT_SET
327};
@ kOOScanClassDefault
Definition Entity.h:326
@ kOOEntityStatusDefault
Definition Entity.h:325

◆ OOEntityStatus

Definition at line 59 of file Entity.h.

60{
61 #include "OOEntityStatus.tbl"
OOEntityStatus
Definition Entity.h:60

◆ OOScanClass

enum typedef enum OOScanClass OOScanClass

Definition at line 70 of file Entity.h.

71{
72 #include "OOScanClass.tbl"
73};

Function Documentation

◆ OOEntityStatusFromString()

OOEntityStatus OOEntityStatusFromString ( NSString * string)

Definition at line 143 of file OOConstToString.m.

144{
145 #include "OOEntityStatus.tbl"
146
148}

References kOOEntityStatusDefault.

◆ OOScanClassFromString()

OOScanClass OOScanClassFromString ( NSString * string)

Definition at line 183 of file OOConstToString.m.

184{
185 #include "OOScanClass.tbl"
186
187 return kOOScanClassDefault;
188}

References kOOScanClassDefault.

◆ OOStringFromEntityStatus()

NSString * OOStringFromEntityStatus ( OOEntityStatus status)

Definition at line 41 of file OOConstToString.m.

42{
43 switch (value)
44 {
45 #include "OOEntityStatus.tbl"
46 }
47 return @"UNDEFINED";
48}

◆ OOStringFromScanClass()

NSString * OOStringFromScanClass ( OOScanClass scanClass)

Definition at line 104 of file OOConstToString.m.

105{
106 switch (value)
107 {
108 #include "OOScanClass.tbl"
109 }
110
111 return @"UNDEFINED";
112}

Variable Documentation

◆ gLiveEntityCount

uint32_t gLiveEntityCount
extern

Definition at line 43 of file Entity.m.

◆ gTotalEntityMemory

size_t gTotalEntityMemory
extern

Definition at line 44 of file Entity.m.