class System

Declared in: StarSystem.h
Library: libUniverse.so
Derived from: pointf << primitivef << BArchivable

Description

This is an implementation of "star systems" for the usage. mainly in games, but academic usage is forseeable. In its present form, it inherits its qualities from pointf, which is implemented in libFuzzy++.so. As "star systems" becomes more complex, it will very likely inherit from a more complex 3d object, like aggregatef, but it will retain some "point" qualities.

Constructors and Destructors

System();
Initializes to a default star at (1, 1, 1) and with a name of "Star".
System(BMesssage *);
Constructs a system that has been archived in the BMessage.
~System()
Cleans up some loose ends and preps it for memory clearing

Members

status_t Archive(BMessage *, bool)
Archived information:
NAME TYPE VALUE
GType B_STRING_TYPE "STAR"
Systemname B_STRING_TYPE {star system name}
Coords B_RAW_TYPE {dump of coordinates}
class B_STRING_TYPE System

static BArchive *Instantiate(BMessage *)
Takes a BMessage and returns the BArchivable-cast pointer to the new System. The calling procedure now owns the System.

BString *systemname
The name of the system.