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

Public Member Functions | Friends | List of all members
COrder_TransformInto Class Reference

#include <action_upgradeto.h>

Inheritance diagram for COrder_TransformInto:
COrder

Public Member Functions

 COrder_TransformInto ()
 
virtual COrder_TransformIntoClone () const
 
virtual void UpdatePathFinderData (PathFinderInput &input)
 
action_upgradeto.cpp - The unit upgrading to new action.
virtual bool IsValid () const
 
virtual void Save (CFile &file, const CUnit &unit) const
 
virtual bool ParseSpecificData (lua_State *l, int &j, const char *value, const CUnit &unit)
 
virtual void Execute (CUnit &unit)
 
virtual PixelPos Show (const CViewport &vp, const PixelPos &lastScreenPos) const
 
- Public Member Functions inherited from COrder
 COrder (int action)
 
virtual void Cancel (CUnit &unit)
 
virtual void UpdateUnitVariables (CUnit &unit) const
 
bool HasGoal () const
 
CUnitGetGoal () const
 
bool ParseGenericData (lua_State *l, int &j, const char *value)
 
virtual ~COrder ()
 Hash calculated to find sync failures. More...
 
virtual void OnAnimationAttack (CUnit &unit)
 
virtual void FillSeenValues (CUnit &unit) const
 
virtual void AiUnitKilled (CUnit &unit)
 
void SetGoal (CUnit *const new_goal)
 
void ClearGoal ()
 
virtual const Vec2i GetGoalPos () const
 
virtual bool OnAiHitUnit (CUnit &unit, CUnit *attacker, int)
 

Friends

COrderCOrder::NewActionTransformInto (CUnitType &type)
 

Additional Inherited Members

- Static Public Member Functions inherited from COrder
static COrderNewActionAttack (const CUnit &attacker, CUnit &target)
 
static COrderNewActionAttack (const CUnit &attacker, const Vec2i &dest)
 
static COrderNewActionAttackGround (const CUnit &attacker, const Vec2i &dest)
 
static COrderNewActionBoard (CUnit &unit)
 
static COrderNewActionBuild (const CUnit &builder, const Vec2i &pos, CUnitType &building)
 
static COrderNewActionBuilt (CUnit &builder, CUnit &unit)
 
static COrderNewActionDefend (CUnit &dest)
 
static COrderNewActionDie ()
 
static COrderNewActionExplore (const CUnit &unit)
 
static COrderNewActionFollow (CUnit &dest)
 
static COrderNewActionMove (const Vec2i &pos)
 
static COrderNewActionPatrol (const Vec2i &currentPos, const Vec2i &dest)
 
static COrderNewActionRepair (CUnit &unit, CUnit &target)
 
static COrderNewActionRepair (const Vec2i &pos)
 
static COrderNewActionResearch (CUnit &unit, CUpgrade &upgrade)
 
static COrderNewActionResource (CUnit &harvester, const Vec2i &pos)
 
static COrderNewActionResource (CUnit &harvester, CUnit &mine)
 
static COrderNewActionReturnGoods (CUnit &harvester, CUnit *depot)
 
static COrderNewActionSpellCast (const SpellType &spell, const Vec2i &pos, CUnit *target, bool isAutocast=false)
 
static COrderNewActionStandGround ()
 
static COrderNewActionStill ()
 
static COrderNewActionTrain (CUnit &trainer, CUnitType &type)
 
static COrderNewActionTransformInto (CUnitType &type)
 
static COrderNewActionUpgradeTo (CUnit &unit, CUnitType &type, bool instant=false)
 
static COrderNewActionUnload (const Vec2i &pos, CUnit *what)
 
- Public Attributes inherited from COrder
const unsigned char Action
 
bool Finished
 global action More...
 
bool Instant
 true when order is finish More...
 
- Protected Member Functions inherited from COrder
void UpdatePathFinderData_NotCalled (PathFinderInput &input)
 

Constructor & Destructor Documentation

◆ COrder_TransformInto()

COrder_TransformInto::COrder_TransformInto ( )
inline

Member Function Documentation

◆ Clone()

virtual COrder_TransformInto* COrder_TransformInto::Clone ( ) const
inlinevirtual

Implements COrder.

◆ Execute()

void COrder_TransformInto::Execute ( CUnit unit)
virtual

Implements COrder.

◆ IsValid()

bool COrder_TransformInto::IsValid ( ) const
virtual

Implements COrder.

◆ ParseSpecificData()

bool COrder_TransformInto::ParseSpecificData ( lua_State *  l,
int &  j,
const char *  value,
const CUnit unit 
)
virtual

Implements COrder.

◆ Save()

void COrder_TransformInto::Save ( CFile file,
const CUnit unit 
) const
virtual

Implements COrder.

◆ Show()

PixelPos COrder_TransformInto::Show ( const CViewport vp,
const PixelPos lastScreenPos 
) const
virtual

Implements COrder.

◆ UpdatePathFinderData()

virtual void COrder_TransformInto::UpdatePathFinderData ( PathFinderInput input)
inlinevirtual

Implements COrder.

Friends And Related Function Documentation

◆ COrder::NewActionTransformInto


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