____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       A futuristic real-time strategy game.
          This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project. Distributed under the "GNU General Public License"

COrder Class Reference

#include <unit.h>

List of all members.

Public Member Functions

 COrder ()
void Init ()

Public Attributes

unsigned char Action
 global action
int Range
 How far away.
unsigned int MinRange
 How far away minimum.
unsigned char Width
 Goal Width (used when Goal is not).
unsigned char Height
 Goal Height (used when Goal is not).
CUnitGoal
 goal of the order (if any)
int X
 or X tile coordinate of destination
int Y
 or Y tile coordinate of destination
CUnitTypeType
 Unit-type argument.
union {
   struct {
      int   X
 X position for patroling.
      int   Y
 Y position for patroling.
   }   Patrol
 position.
   SpellType *   Spell
 spell when casting.
Arg1
 Extra command argument.


Detailed Description

Unit order structure.

Definition at line 410 of file unit.h.


Constructor & Destructor Documentation

COrder::COrder (  )  [inline]

Definition at line 412 of file unit.h.

References Arg1.


Member Function Documentation

void COrder::Init ( void   )  [inline]


Member Data Documentation

unsigned char COrder::Action

unsigned int COrder::MinRange

unsigned char COrder::Width

Goal Width (used when Goal is not).

Definition at line 433 of file unit.h.

Referenced by CclParseOrder(), CommandBuildBuilding(), Init(), and SaveOrder().

unsigned char COrder::Height

Goal Height (used when Goal is not).

Definition at line 434 of file unit.h.

Referenced by CclParseOrder(), CommandBuildBuilding(), Init(), and SaveOrder().

int COrder::X

int COrder::Y

Unit-type argument.

Definition at line 439 of file unit.h.

Referenced by CclParseOrder(), CommandBuildBuilding(), CommandTrainUnit(), GetOrderPosition(), Init(), SaveOrder(), and ShowSingleOrder().

struct { ... } COrder::Patrol

spell when casting.

Definition at line 446 of file unit.h.

Referenced by CclParseOrder(), CommandSpellCast(), and SaveOrder().

union { ... } COrder::Arg1


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

Generated on Sat Feb 21 00:28:23 2009 for Bos Wars by  doxygen 1.5.6