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

script_spell.cpp File Reference
#include "stratagus.h"
#include "spells.h"
#include "spell/spell_adjustvariable.h"
#include "spell/spell_adjustvital.h"
#include "spell/spell_areaadjustvital.h"
#include "spell/spell_areabombardment.h"
#include "spell/spell_capture.h"
#include "spell/spell_demolish.h"
#include "spell/spell_luacallback.h"
#include "spell/spell_polymorph.h"
#include "spell/spell_spawnmissile.h"
#include "spell/spell_spawnportal.h"
#include "spell/spell_summon.h"
#include "spell/spell_teleport.h"
#include "luacallback.h"
#include "script_sound.h"
#include "script.h"
#include "unittype.h"
#include "upgrade.h"

Functions

script_spell.cpp - The spell script functions..
static SpellActionTypeCclSpellAction (lua_State *l)
 
char Ccl2Condition (lua_State *l, const char *value)
 return 0, 1, 2 for true, only, false. More...
 
static void CclSpellCondition (lua_State *l, ConditionInfo *condition)
 
static void CclSpellAutocast (lua_State *l, AutoCastInfo *autocast)
 
static int CclDefineSpell (lua_State *l)
 
void SpellCclRegister ()
 register fonction. More...
 

Function Documentation

◆ Ccl2Condition()

char Ccl2Condition ( lua_State *  l,
const char *  value 
)

return 0, 1, 2 for true, only, false.

Get a condition value from a scm object.

Parameters
lLua state.
valuescm value to convert.
Returns
CONDITION_TRUE, CONDITION_FALSE, CONDITION_ONLY or -1 on error.
Note
This is a helper function to make CclSpellCondition shorter and easier to understand.

◆ CclDefineSpell()

static int CclDefineSpell ( lua_State *  l)
static

Parse Spell.

Parameters
lLua state.

◆ CclSpellAction()

static SpellActionType* CclSpellAction ( lua_State *  l)
static

Parse the action for spell.

Parameters
lLua state.

◆ CclSpellAutocast()

static void CclSpellAutocast ( lua_State *  l,
AutoCastInfo autocast 
)
static

Parse the Condition for spell.

Parameters
lLua state.
autocastpointer to autocast to fill with data.
Note
: autocast must be allocated. All data already in is LOST.

◆ CclSpellCondition()

static void CclSpellCondition ( lua_State *  l,
ConditionInfo condition 
)
static

Parse the Condition for spell.

Parameters
lLua state.
conditionpointer to condition to fill with data.
Note
Conditions must be allocated. All data already in is LOST.

◆ SpellCclRegister()

void SpellCclRegister ( )

register fonction.

Register CCL features for Spell.

(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.