Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List

FSTypes.h File Reference

FreeStars types. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FSTypes_h
#define FREESTARSVERSION   0.1
#define HOSTFILEVERSION   0.1
#define RULESFILEVERSION   0.1
#define TURNFILEVERSION   0.1
#define ORDERSFILEVERSION   0.1
#define XYFILEVERSION   0.1
#define RACEFILEVERSION   0.1
#define epsilon   0.00000001

Typedefs

typedef long TechType
typedef long TransferType
typedef long HabType
typedef unsigned long ComponentType
typedef unsigned long HullType

Functions

template<class FwdIter, class ReturnType, class TrinaryOp, class Third>
ReturnType accumulate (FwdIter First, FwdIter Last, ReturnType Initial, TrinaryOp func, Third arg)
template<class _RandomAccessIter>
void Random_Shuffle (_RandomAccessIter __first, _RandomAccessIter __last)

Variables

const long PR_SELF = 4
const long PR_FRIEND = 3
const long PR_NEUTRAL = 2
const long PR_ENEMY = 1
const TechType NEXT_CHEAP = -5
const TechType RESEARCH_ALCHEMY = -4
const TechType NEXT_SAME = -3
const TechType NEXT_LOW = -2
const TechType TECH_NONE = -1
const long MAX_TECH_LEVEL = 26
const TransferType TRANSFER_NOORDER = 0
const TransferType TRANSFER_LOADALL = 1
const TransferType TRANSFER_UNLOADALL = 2
const TransferType TRANSFER_LOADAMT = 3
const TransferType TRANSFER_UNLOADAMT = 4
const TransferType TRANSFER_FILLPER = 5
const TransferType TRANSFER_WAITPER = 6
const TransferType TRANSFER_LOADDUNN = 7
const TransferType TRANSFER_AMOUNTTO = 8
const TransferType TRANSFER_DESTTO = 9
const TransferType TRANSFER_SETTOPER = 10
const TransferType TRANSFER_DROPNLOAD = 11
const ComponentType CT_NONE = 0x00000000
const ComponentType CT_ARMOR = 0x00000001
const ComponentType CT_SHIELD = 0x00000002
const ComponentType CT_WEAPON = 0x00000004
const ComponentType CT_BOMB = 0x00000008
const ComponentType CT_ELEC = 0x00000010
const ComponentType CT_HULL = 0x00000020
const ComponentType CT_BASE = 0x00000040
const ComponentType CT_PLANSCAN = 0x00000080
const ComponentType CT_DEFENSE = 0x00000100
const ComponentType CT_TERRAFORM = 0x00000200
const ComponentType CT_ENGINE = 0x00000400
const ComponentType CT_MINELAY = 0x00000800
const ComponentType CT_MINER = 0x00001000
const ComponentType CT_SCANNER = 0x00002000
const ComponentType CT_MECH = 0x00004000
const ComponentType CT_ALCHEMY = 0x00008000
const ComponentType CT_PLANET_SPECIAL = 0x00010000
const ComponentType CT_GATE = 0x00020000
const ComponentType CT_DRIVER = 0x00040000
const ComponentType CT_PLANETARY = CT_PLANSCAN | CT_DEFENSE | CT_TERRAFORM | CT_PLANET_SPECIAL | CT_ALCHEMY
const ComponentType CT_ORBITAL = CT_DRIVER | CT_GATE
const ComponentType CT_ALL = ~CT_NONE
const ComponentType CT_GENERAL = CT_ALL & ~(CT_BOMB | CT_MINER | CT_ENGINE | CT_ORBITAL | CT_PLANETARY | CT_HULL | CT_BASE)
const HullType HC_NONE = 0x0000
const HullType HC_SCOUT = 0x0001
const HullType HC_LAYER = 0x0002
const HullType HC_MINICOL = 0x0004
const HullType HC_WARSHIP = 0x0008
const HullType HC_BOMBER = 0x0010
const HullType HC_MINER = 0x0020
const HullType HC_COLONY = 0x0040
const HullType HC_FREIGHTER = 0x0080
const HullType HC_UTILITY = 0x0100
const HullType HC_FUEL = 0x0200
const HullType HC_SMALLBASE = 0x0400
const HullType HC_BIGBASE = 0x0800
const HullType HC_ARMED = 0x1000
const HullType HC_UNKNOWN = 0x2000
const HullType HC_BASE = HC_SMALLBASE | HC_BIGBASE
const HullType HC_UNARMED = HC_COLONY | HC_MINICOL | HC_FREIGHTER | HC_FUEL | HC_MINER
const HullType HC_COL = HC_COLONY | HC_MINICOL
const HullType HC_ALL = ~HC_NONE
const unsigned long RE_NONE = 0x0000
const unsigned long RE_MT = 0x0001
const unsigned long RE_ARTIFACT = 0x0002
const unsigned long RE_COMET = 0x0004
const unsigned long RE_WORMHOLE = 0x0008
const unsigned long RE_ALL = ~RE_NONE
const unsigned long PPS_NONE = 0x0000
const unsigned long PPS_PLANET = 0x0001
const unsigned long PPS_BASES = 0x0002
const unsigned long PPS_UNARM = 0x0004
const unsigned long PPS_ESCORT = 0x0008
const unsigned long PPS_CAPSHIP = 0x0010
const unsigned long PPS_TECH = 0x0020
const unsigned long PPS_RESOURCE = 0x0040
const unsigned long PPS_SCORE = 0x0080
const unsigned long PPS_RANK = 0x0100
const unsigned long PPS_ALL = ~PPS_NONE


Detailed Description

FreeStars types.

Definition in file FSTypes.h.


Generated on Mon Aug 8 21:33:59 2005 for Freestars by  doxygen 1.4.2-20050421