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

spell_summon.h
Go to the documentation of this file.
1 // _________ __ __
2 // / _____// |_____________ _/ |______ ____ __ __ ______
3 // \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
4 // / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ |
5 // /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
6 // \/ \/ \//_____/ \/
7 // ______________________ ______________________
8 // T H E W A R B E G I N S
9 // Stratagus - A free fantasy real time strategy game engine
10 //
11 //
12 // (c) Copyright 1999-2012 by Vladi Belperchinov-Shabanski,
13 // Joris DAUPHIN, and Jimmy Salmon
14 //
15 // This program is free software; you can redistribute it and/or modify
16 // it under the terms of the GNU General Public License as published by
17 // the Free Software Foundation; only version 2 of the License.
18 //
19 // This program is distributed in the hope that it will be useful,
20 // but WITHOUT ANY WARRANTY; without even the implied warranty of
21 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22 // GNU General Public License for more details.
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program; if not, write to the Free Software
26 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
27 // 02111-1307, USA.
28 //
29 
30 #ifndef SPELL_SUMMON_H
31 #define SPELL_SUMMON_H
32 
34 
35 /*----------------------------------------------------------------------------
36 -- Includes
37 ----------------------------------------------------------------------------*/
38 
39 #include "spells.h"
40 
42 {
43 public:
44  Spell_Summon() : SpellActionType(1), UnitType(NULL), TTL(0),
45  RequireCorpse(false), JoinToAiForce(false) {};
46  virtual int Cast(CUnit &caster, const SpellType &spell,
47  CUnit *&target, const Vec2i &goalPos);
48  virtual void Parse(lua_State *l, int startIndex, int endIndex);
49 
50 private:
51  CUnitType *UnitType;
52  int TTL;
53  int RequireCorpse;
54  bool JoinToAiForce;
55 };
56 
57 
59 
60 #endif // SPELL_SUMMON_H
Spell_Summon::Spell_Summon
Spell_Summon()
Definition: spell_summon.h:44
CUnitType
Definition: unittype.h:508
Vec2T
Definition: vec2i.h:36
SpellActionType
Definition: spells.h:63
spells.h
Spell_Summon::Parse
virtual void Parse(lua_State *l, int startIndex, int endIndex)
Definition: spell_summon.cpp:47
Spell_Summon
Definition: spell_summon.h:41
SpellType
Definition: spells.h:205
Spell_Summon::Cast
virtual int Cast(CUnit &caster, const SpellType &spell, CUnit *&target, const Vec2i &goalPos)
Definition: spell_summon.cpp:97
CUnit
The big unit structure.
Definition: unit.h:135
(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.