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

COrder_SpellCast Class Reference

#include <action_spellcast.h>

Inheritance diagram for COrder_SpellCast:

COrder

List of all members.


action_spellcast.cpp - The spell cast 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
virtual void UpdatePathFinderData (PathFinderInput &input)
virtual void OnAnimationAttack (CUnit &unit)

Public Member Functions

 COrder_SpellCast ()
virtual COrder_SpellCastClone () const
const SpellTypeGetSpell () const
void SetSpell (const SpellType &spell)

Friends

COrderCOrder::NewActionSpellCast (const SpellType &spell, const Vec2i &pos, CUnit *target)

Constructor & Destructor Documentation

COrder_SpellCast::COrder_SpellCast (  )  [inline]


Member Function Documentation

virtual COrder_SpellCast* COrder_SpellCast::Clone (  )  const [inline, virtual]

Implements COrder.

bool COrder_SpellCast::IsValid (  )  const [virtual]

Implements COrder.

void COrder_SpellCast::Save ( CFile file,
const CUnit unit 
) const [virtual]

Implements COrder.

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

Implements COrder.

void COrder_SpellCast::Execute ( CUnit unit  )  [virtual]

Implements COrder.

PixelPos COrder_SpellCast::Show ( const CViewport vp,
const PixelPos lastScreenPos 
) const [virtual]

Implements COrder.

void COrder_SpellCast::UpdatePathFinderData ( PathFinderInput input  )  [virtual]

Implements COrder.

void COrder_SpellCast::OnAnimationAttack ( CUnit unit  )  [virtual]

Call when animation step is "attack"

Reimplemented from COrder.

const SpellType& COrder_SpellCast::GetSpell (  )  const [inline]

void COrder_SpellCast::SetSpell ( const SpellType spell  )  [inline]


Friends And Related Function Documentation

COrder* COrder::NewActionSpellCast ( const SpellType spell,
const Vec2i pos,
CUnit target 
) [friend]


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.