Oolite 1.91.0.7645-241119-222d325
Loading...
Searching...
No Matches
RouteElement Class Reference
+ Inheritance diagram for RouteElement:
+ Collaboration diagram for RouteElement:

Instance Methods

(OOSystemID- parent
 
(OOSystemID- location
 
(double) - cost
 
(double) - distance
 
(double) - time
 
(int- jumps
 

Class Methods

(instancetype) + elementWithLocation:parent:cost:distance:time:jumps:
 

Private Attributes

OOSystemID _location
 
OOSystemID _parent
 
double _cost
 
double _distance
 
double _time
 
int _jumps
 

Detailed Description

Definition at line 156 of file Universe.m.

Method Documentation

◆ cost

- (double) cost

Definition at line 161 of file Universe.m.

192{ return _cost; }
double _cost
Definition Universe.m:160

◆ distance

- (double) distance

Definition at line 161 of file Universe.m.

193{ return _distance; }
double _distance
Definition Universe.m:160

◆ elementWithLocation:parent:cost:distance:time:jumps:

+ (instancetype) elementWithLocation: (OOSystemID) location
parent: (OOSystemID) parent
cost: (double) cost
distance: (double) distance
time: (double) time
jumps: (int) jumps 

Definition at line 161 of file Universe.m.

177{
178 RouteElement *r = [[RouteElement alloc] init];
179
180 r->_location = location;
181 r->_parent = parent;
182 r->_cost = cost;
183 r->_distance = distance;
184 r->_time = time;
185 r->_jumps = jumps;
186
187 return [r autorelease];
188}
int16_t OOSystemID
Definition OOTypes.h:211
OOSystemID parent()
Definition Universe.m:190
OOSystemID _location
Definition Universe.m:159
double distance()
Definition Universe.m:193
OOSystemID _parent
Definition Universe.m:159
double _time
Definition Universe.m:160
OOSystemID location()
Definition Universe.m:191
double cost()
Definition Universe.m:192
double time()
Definition Universe.m:194
typedef int(ZCALLBACK *close_file_func) OF((voidpf opaque

◆ jumps

- (int) jumps

Definition at line 161 of file Universe.m.

195{ return _jumps; }

◆ location

- (OOSystemID) location

Definition at line 161 of file Universe.m.

191{ return _location; }

◆ parent

- (OOSystemID) parent

Definition at line 161 of file Universe.m.

190{ return _parent; }

◆ time

- (double) time

Definition at line 161 of file Universe.m.

194{ return _time; }

Member Data Documentation

◆ _cost

- (double) _cost
private

Definition at line 160 of file Universe.m.

◆ _distance

- (double) _distance
private

Definition at line 160 of file Universe.m.

◆ _jumps

- (int) _jumps
private

Definition at line 161 of file Universe.m.

◆ _location

- (OOSystemID) _location
private

Definition at line 159 of file Universe.m.

◆ _parent

- (OOSystemID) _parent
private

Definition at line 159 of file Universe.m.

◆ _time

- (double) _time
private

Definition at line 160 of file Universe.m.


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