$treeview $search $mathjax
Stratagus  2.2.6
$projectbrief
$projectbrief
$searchbox
-->
         _________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
           Stratagus - A free fantasy real time strategy game engine

CUnit::COrder Class Reference

#include <unit.h>

List of all members.


Public Member Functions

 COrder ()
 goal of the order (if any)
 ~COrder ()
void Init ()
bool HasGoal () const
 Extra command argument.
CUnitGetGoal () const
void SetGoal (CUnit *const new_goal)
void ClearGoal ()
unit.cpp - The units.
 COrder (const COrder &ths)
void Release ()
COrderoperator= (const COrder &rhs)
bool CheckRange ()

Public Attributes

int Range
unsigned int MinRange
 How far away.
unsigned char Width
 How far away minimum.
unsigned char Height
 Goal Width (used when Goal is not).
unsigned char Action
 Goal Height (used when Goal is not).
unsigned char CurrentResource
 global action
Vec2i goalPos
union {
   Vec2i   Patrol
   union {
      Vec2i   Pos
      CUnit *   Mine
 position for terrain resource.
   }   Resource
 position for patroling.
   SpellType *   Spell
   CUpgrade *   Upgrade
 spell when casting.
   CUnitType *   Type
 upgrade.
Arg1
 or tile coordinate of destination

Friends

void CclParseOrder (lua_State *l, COrder *order)

Detailed Description

Unit order structure.

Constructor & Destructor Documentation

CUnit::COrder::COrder (  )  [inline]

goal of the order (if any)

CUnit::COrder::COrder ( const COrder ths  ) 

CUnit::COrder::~COrder (  )  [inline]


Member Function Documentation

void CUnit::COrder::Release (  ) 

CUnit::COrder & CUnit::COrder::operator= ( const COrder rhs  ) 

bool CUnit::COrder::CheckRange (  ) 

void CUnit::COrder::Init (  )  [inline]

bool CUnit::COrder::HasGoal (  )  const [inline]

Extra command argument.

CUnit* CUnit::COrder::GetGoal (  )  const [inline]

void CUnit::COrder::SetGoal ( CUnit *const   new_goal  )  [inline]

void CUnit::COrder::ClearGoal (  )  [inline]


Friends And Related Function Documentation

void CclParseOrder ( lua_State *  l,
COrder order 
) [friend]


Member Data Documentation

How far away.

unsigned char CUnit::COrder::Width

How far away minimum.

unsigned char CUnit::COrder::Height

Goal Width (used when Goal is not).

unsigned char CUnit::COrder::Action

Goal Height (used when Goal is not).

global action

position for terrain resource.

union { ... } CUnit::COrder::Resource

position for patroling.

spell when casting.

union { ... } CUnit::COrder::Arg1

or tile coordinate of destination


The documentation for this class was generated from the following files:
(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.