Galactic Bloodshed
Public Attributes | List of all members
Ship Class Reference

#include <ships.h>

Collaboration diagram for Ship:

Public Attributes

shipnum_t number
 ship knows its own number More...
 
player_t owner
 owner of ship More...
 
governor_t governor
 subordinate that controls the ship More...
 
char name [SHIP_NAMESIZE]
 name of ship (optional) More...
 
char shipclass [SHIP_NAMESIZE]
 shipclass of ship - designated by player More...
 
unsigned char race
 
double xpos
 
double ypos
 
double fuel
 
double mass
 
unsigned char land_x
 
unsigned char land_y
 
shipnum_t destshipno
 
shipnum_t nextship
 
shipnum_t ships
 
unsigned char armor
 
unsigned short size
 
unsigned short max_crew
 
resource_t max_resource
 
unsigned short max_destruct
 
unsigned short max_fuel
 
unsigned short max_speed
 
ShipType build_type
 for factories - type of ship it makes More...
 
unsigned short build_cost
 
double base_mass
 
double tech
 
double complexity
 
unsigned short destruct
 
resource_t resource
 
population_t popn
 
population_t troops
 
unsigned short crystals
 
union {
   struct {
      shipnum_t   shipno
 
      starnum_t   snum
 
      char   intensity
 
      planetnum_t   pnum
 
      ScopeLevel   level
 
      unsigned char   dummy [4]
 
   }   aimed_at
 
   struct {
      unsigned char   progenitor
 
      unsigned char   target
 
      unsigned char   generation
 
      unsigned char   busy
 
      unsigned char   tampered
 
      unsigned char   who_killed
 
      unsigned char   dummy [4]
 
   }   mind
 
   struct {
      unsigned char   decay
 
      unsigned char   temperature
 
      unsigned char   dummy [8]
 
   }   pod
 
   struct {
      unsigned char   count
 
      unsigned char   dummy [9]
 
   }   timer
 
   struct {
      unsigned char   x
 
      unsigned char   y
 
      unsigned char   scatter
 
      unsigned char   dummy [7]
 
   }   impact
 
   struct {
      unsigned short   radius
 
      unsigned char   dummy [8]
 
   }   trigger
 
   struct {
      unsigned char   index
 
      unsigned char   dummy [9]
 
   }   terraform
 
   struct {
      unsigned short   target
 
      unsigned char   dummy [8]
 
   }   transport
 
   struct {
      unsigned char   toxic
 
      unsigned char   dummy [9]
 
   }   waste
 
special
 
short who_killed
 
struct {
   unsigned   on: 1
 
   unsigned   speed: 4
 
   unsigned   turns: 15
 
   unsigned   bearing: 9
 
   unsigned   dummy: 3
 
navigate
 
struct {
   double   maxrng
 
   unsigned   on: 1
 
   unsigned   planet: 1
 
   unsigned   self: 1
 
   unsigned   evade: 1
 
   unsigned   ship: 14
 
   unsigned   dummy: 6
 
protect
 
unsigned char mount
 
struct {
   unsigned char   charge
 
   unsigned   ready: 1
 
   unsigned   on: 1
 
   unsigned   has: 1
 
   unsigned   dummy: 5
 
hyper_drive
 
unsigned char cew
 
unsigned short cew_range
 
unsigned char cloak
 
unsigned char laser
 
unsigned char focus
 
unsigned char fire_laser
 
starnum_t storbits
 
starnum_t deststar
 
planetnum_t destpnum
 
planetnum_t pnumorbits
 
ScopeLevel whatdest
 
ScopeLevel whatorbits
 
unsigned char damage
 
int rad
 
unsigned char retaliate
 
ShipType type
 
unsigned char speed
 
unsigned active: 1
 
unsigned alive: 1
 
unsigned mode: 1
 
unsigned bombard: 1
 
unsigned mounted: 1
 
unsigned cloaked: 1
 
unsigned sheep: 1
 
unsigned docked: 1
 
unsigned notified: 1
 
unsigned examined: 1
 
unsigned dummy4: 5
 
unsigned char merchant
 
unsigned char guns
 
unsigned long primary
 
unsigned long primtype
 
unsigned long secondary
 
unsigned long sectype
 
unsigned short hanger
 
unsigned short max_hanger
 

Detailed Description

Definition at line 106 of file ships.h.

Member Data Documentation

◆ active

unsigned Ship::active

Definition at line 251 of file ships.h.

◆ aimed_at

struct { ... } Ship::aimed_at

◆ alive

unsigned Ship::alive

Definition at line 252 of file ships.h.

◆ armor

unsigned char Ship::armor

Definition at line 127 of file ships.h.

◆ base_mass

double Ship::base_mass

Definition at line 138 of file ships.h.

◆ bearing

unsigned Ship::bearing

Definition at line 206 of file ships.h.

◆ bombard

unsigned Ship::bombard

Definition at line 254 of file ships.h.

◆ build_cost

unsigned short Ship::build_cost

Definition at line 136 of file ships.h.

◆ build_type

ShipType Ship::build_type

for factories - type of ship it makes

Definition at line 135 of file ships.h.

◆ busy

unsigned char Ship::busy

Definition at line 162 of file ships.h.

◆ cew

unsigned char Ship::cew

Definition at line 229 of file ships.h.

◆ cew_range

unsigned short Ship::cew_range

Definition at line 230 of file ships.h.

◆ charge

unsigned char Ship::charge

Definition at line 223 of file ships.h.

◆ cloak

unsigned char Ship::cloak

Definition at line 231 of file ships.h.

◆ cloaked

unsigned Ship::cloaked

Definition at line 256 of file ships.h.

◆ complexity

double Ship::complexity

Definition at line 140 of file ships.h.

◆ count

unsigned char Ship::count

Definition at line 173 of file ships.h.

◆ crystals

unsigned short Ship::crystals

Definition at line 146 of file ships.h.

◆ damage

unsigned char Ship::damage

Definition at line 243 of file ships.h.

◆ decay

unsigned char Ship::decay

Definition at line 168 of file ships.h.

◆ destpnum

planetnum_t Ship::destpnum

Definition at line 238 of file ships.h.

◆ destruct

unsigned short Ship::destruct

Definition at line 142 of file ships.h.

◆ destshipno

shipnum_t Ship::destshipno

Definition at line 123 of file ships.h.

◆ deststar

starnum_t Ship::deststar

Definition at line 237 of file ships.h.

◆ docked

unsigned Ship::docked

Definition at line 258 of file ships.h.

◆ dummy [1/2]

unsigned char Ship::dummy[9]

Definition at line 156 of file ships.h.

◆ dummy [2/2]

unsigned Ship::dummy

Definition at line 207 of file ships.h.

◆ dummy4

unsigned Ship::dummy4

Definition at line 262 of file ships.h.

◆ evade

unsigned Ship::evade

Definition at line 215 of file ships.h.

◆ examined

unsigned Ship::examined

Definition at line 260 of file ships.h.

◆ fire_laser

unsigned char Ship::fire_laser

Definition at line 234 of file ships.h.

◆ focus

unsigned char Ship::focus

Definition at line 233 of file ships.h.

◆ fuel

double Ship::fuel

Definition at line 119 of file ships.h.

◆ generation

unsigned char Ship::generation

Definition at line 161 of file ships.h.

◆ governor

governor_t Ship::governor

subordinate that controls the ship

Definition at line 110 of file ships.h.

◆ guns

unsigned char Ship::guns

Definition at line 265 of file ships.h.

◆ hanger

unsigned short Ship::hanger

Definition at line 271 of file ships.h.

◆ has

unsigned Ship::has

Definition at line 226 of file ships.h.

◆ hyper_drive

struct { ... } Ship::hyper_drive

◆ impact

struct { ... } Ship::impact

◆ index

unsigned char Ship::index

Definition at line 187 of file ships.h.

◆ intensity

char Ship::intensity

Definition at line 153 of file ships.h.

◆ land_x

unsigned char Ship::land_x

Definition at line 121 of file ships.h.

◆ land_y

unsigned char Ship::land_y

Definition at line 121 of file ships.h.

◆ laser

unsigned char Ship::laser

Definition at line 232 of file ships.h.

◆ level

ScopeLevel Ship::level

Definition at line 155 of file ships.h.

◆ mass

double Ship::mass

Definition at line 120 of file ships.h.

◆ max_crew

unsigned short Ship::max_crew

Definition at line 130 of file ships.h.

◆ max_destruct

unsigned short Ship::max_destruct

Definition at line 132 of file ships.h.

◆ max_fuel

unsigned short Ship::max_fuel

Definition at line 133 of file ships.h.

◆ max_hanger

unsigned short Ship::max_hanger

Definition at line 272 of file ships.h.

◆ max_resource

resource_t Ship::max_resource

Definition at line 131 of file ships.h.

◆ max_speed

unsigned short Ship::max_speed

Definition at line 134 of file ships.h.

◆ maxrng

double Ship::maxrng

Definition at line 211 of file ships.h.

◆ merchant

unsigned char Ship::merchant

Definition at line 264 of file ships.h.

◆ mind

struct { ... } Ship::mind

◆ mode

unsigned Ship::mode

Definition at line 253 of file ships.h.

◆ mount

unsigned char Ship::mount

Definition at line 221 of file ships.h.

◆ mounted

unsigned Ship::mounted

Definition at line 255 of file ships.h.

◆ name

char Ship::name[SHIP_NAMESIZE]

name of ship (optional)

Definition at line 111 of file ships.h.

◆ navigate

struct { ... } Ship::navigate

◆ nextship

shipnum_t Ship::nextship

Definition at line 124 of file ships.h.

◆ notified

unsigned Ship::notified

Definition at line 259 of file ships.h.

◆ number

shipnum_t Ship::number

ship knows its own number

Definition at line 108 of file ships.h.

◆ on

unsigned Ship::on

Definition at line 203 of file ships.h.

◆ owner

player_t Ship::owner

owner of ship

Definition at line 109 of file ships.h.

◆ planet

unsigned Ship::planet

Definition at line 213 of file ships.h.

◆ pnum

planetnum_t Ship::pnum

Definition at line 154 of file ships.h.

◆ pnumorbits

planetnum_t Ship::pnumorbits

Definition at line 239 of file ships.h.

◆ pod

struct { ... } Ship::pod

◆ popn

population_t Ship::popn

Definition at line 144 of file ships.h.

◆ primary

unsigned long Ship::primary

Definition at line 266 of file ships.h.

◆ primtype

unsigned long Ship::primtype

Definition at line 267 of file ships.h.

◆ progenitor

unsigned char Ship::progenitor

Definition at line 159 of file ships.h.

◆ protect

struct { ... } Ship::protect

◆ race

unsigned char Ship::race

Definition at line 114 of file ships.h.

◆ rad

int Ship::rad

Definition at line 244 of file ships.h.

◆ radius

unsigned short Ship::radius

Definition at line 183 of file ships.h.

◆ ready

unsigned Ship::ready

Definition at line 224 of file ships.h.

◆ resource

resource_t Ship::resource

Definition at line 143 of file ships.h.

◆ retaliate

unsigned char Ship::retaliate

Definition at line 245 of file ships.h.

◆ scatter

unsigned char Ship::scatter

Definition at line 179 of file ships.h.

◆ secondary

unsigned long Ship::secondary

Definition at line 268 of file ships.h.

◆ sectype

unsigned long Ship::sectype

Definition at line 269 of file ships.h.

◆ self

unsigned Ship::self

Definition at line 214 of file ships.h.

◆ sheep

unsigned Ship::sheep

Definition at line 257 of file ships.h.

◆ ship

unsigned Ship::ship

Definition at line 216 of file ships.h.

◆ shipclass

char Ship::shipclass[SHIP_NAMESIZE]

shipclass of ship - designated by player

Definition at line 112 of file ships.h.

◆ shipno

shipnum_t Ship::shipno

Definition at line 151 of file ships.h.

◆ ships

shipnum_t Ship::ships

Definition at line 125 of file ships.h.

◆ size

unsigned short Ship::size

Definition at line 128 of file ships.h.

◆ snum

starnum_t Ship::snum

Definition at line 152 of file ships.h.

◆ special

union { ... } Ship::special

◆ speed [1/2]

unsigned Ship::speed

Definition at line 204 of file ships.h.

◆ speed [2/2]

unsigned char Ship::speed

Definition at line 249 of file ships.h.

◆ storbits

starnum_t Ship::storbits

Definition at line 236 of file ships.h.

◆ tampered

unsigned char Ship::tampered

Definition at line 163 of file ships.h.

◆ target [1/2]

unsigned short Ship::target

Definition at line 160 of file ships.h.

◆ target [2/2]

unsigned short Ship::target

Definition at line 191 of file ships.h.

◆ tech

double Ship::tech

Definition at line 139 of file ships.h.

◆ temperature

unsigned char Ship::temperature

Definition at line 169 of file ships.h.

◆ terraform

struct { ... } Ship::terraform

◆ timer

struct { ... } Ship::timer

◆ toxic

unsigned char Ship::toxic

Definition at line 195 of file ships.h.

◆ transport

struct { ... } Ship::transport

◆ trigger

struct { ... } Ship::trigger

◆ troops

population_t Ship::troops

Definition at line 145 of file ships.h.

◆ turns

unsigned Ship::turns

Definition at line 205 of file ships.h.

◆ type

ShipType Ship::type

Definition at line 248 of file ships.h.

◆ waste

struct { ... } Ship::waste

◆ whatdest

ScopeLevel Ship::whatdest

Definition at line 240 of file ships.h.

◆ whatorbits

ScopeLevel Ship::whatorbits

Definition at line 241 of file ships.h.

◆ who_killed [1/2]

unsigned char Ship::who_killed

Definition at line 164 of file ships.h.

◆ who_killed [2/2]

short Ship::who_killed

Definition at line 200 of file ships.h.

◆ x

unsigned char Ship::x

Definition at line 177 of file ships.h.

◆ xpos

double Ship::xpos

Definition at line 117 of file ships.h.

◆ y

unsigned char Ship::y

Definition at line 178 of file ships.h.

◆ ypos

double Ship::ypos

Definition at line 118 of file ships.h.


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