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

spell_adjustvariable.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_ADJUSTVARIABLE_H
31 #define SPELL_ADJUSTVARIABLE_H
32 
34 
35 /*----------------------------------------------------------------------------
36 -- Includes
37 ----------------------------------------------------------------------------*/
38 
39 #include "spells.h"
40 
42 {
43 public:
48 
49  int Enable;
50  int Value;
51  int Max;
52  int Increase;
53 
54  char ModifEnable;
55  char ModifValue;
56  char ModifMax;
58 
59  char InvertEnable;
60  int AddValue;
61  int AddMax;
65 };
66 
67 
69 {
70 public:
71  Spell_AdjustVariable() : Var(NULL) {};
72  ~Spell_AdjustVariable() { delete [](this->Var); };
73  virtual int Cast(CUnit &caster, const SpellType &spell,
74  CUnit *&target, const Vec2i &goalPos);
75  virtual void Parse(lua_State *l, int startIndex, int endIndex);
76 
77 private:
79 };
80 
82 
83 #endif // SPELL_ADJUSTVARIABLE_H
Spell_AdjustVariable
Definition: spell_adjustvariable.h:68
SpellActionTypeAdjustVariable::ModifMax
char ModifMax
true if we modify this field.
Definition: spell_adjustvariable.h:56
Spell_AdjustVariable::~Spell_AdjustVariable
~Spell_AdjustVariable()
Definition: spell_adjustvariable.h:72
Spell_AdjustVariable::Parse
virtual void Parse(lua_State *l, int startIndex, int endIndex)
Definition: spell_adjustvariable.cpp:41
SpellActionTypeAdjustVariable::IncreaseTime
int IncreaseTime
Add this value to this field.
Definition: spell_adjustvariable.h:63
SpellActionTypeAdjustVariable::AddIncrease
int AddIncrease
Add this value to this field.
Definition: spell_adjustvariable.h:62
SpellActionTypeAdjustVariable::AddMax
int AddMax
Add this value to this field.
Definition: spell_adjustvariable.h:61
Vec2T
Definition: vec2i.h:36
SpellActionTypeAdjustVariable::Max
int Max
Value to affect to this field.
Definition: spell_adjustvariable.h:51
SpellActionType
Definition: spells.h:63
SpellActionTypeAdjustVariable::ModifIncrease
char ModifIncrease
true if we modify this field.
Definition: spell_adjustvariable.h:57
SpellActionTypeAdjustVariable::AddValue
int AddValue
true if we invert this field.
Definition: spell_adjustvariable.h:60
Spell_AdjustVariable::Spell_AdjustVariable
Spell_AdjustVariable()
Definition: spell_adjustvariable.h:71
SpellActionTypeAdjustVariable::InvertEnable
char InvertEnable
true if we modify this field.
Definition: spell_adjustvariable.h:59
SpellActionTypeAdjustVariable::ModifEnable
char ModifEnable
Value to affect to this field.
Definition: spell_adjustvariable.h:54
spells.h
SpellActionTypeAdjustVariable::Increase
int Increase
Value to affect to this field.
Definition: spell_adjustvariable.h:52
SpellActionTypeAdjustVariable::ModifValue
char ModifValue
true if we modify this field.
Definition: spell_adjustvariable.h:55
SpellActionTypeAdjustVariable::Value
int Value
Value to affect to this field.
Definition: spell_adjustvariable.h:50
SpellActionTypeAdjustVariable
Definition: spell_adjustvariable.h:41
SpellActionTypeAdjustVariable::Enable
int Enable
Definition: spell_adjustvariable.h:47
SpellActionTypeAdjustVariable::TargetIsCaster
char TargetIsCaster
How many time increase the Value field.
Definition: spell_adjustvariable.h:64
SpellActionTypeAdjustVariable::SpellActionTypeAdjustVariable
SpellActionTypeAdjustVariable()
Definition: spell_adjustvariable.h:44
SpellType
Definition: spells.h:205
CUnit
The big unit structure.
Definition: unit.h:135
Spell_AdjustVariable::Cast
virtual int Cast(CUnit &caster, const SpellType &spell, CUnit *&target, const Vec2i &goalPos)
Definition: spell_adjustvariable.cpp:119
(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.