Home
last modified time | relevance | path

Searched refs:AutoCastSpell (Results 1 – 25 of 25) sorted by relevance

/dports/games/stratagus/stratagus-3.2.0/src/action/
H A Daction_still.cpp199 if (unit.AutoCastSpell && !unit.Removed) { // Removed units can't cast any spells, from bunker) in AutoCast()
201 if (unit.AutoCastSpell[i] in AutoCast()
203 && AutoCastSpell(unit, *SpellTypeTable[i])) { in AutoCast()
313 if (unit.AutoCastSpell[i] in AutoCastStand()
315 && AutoCastSpell(unit, *SpellTypeTable[i])) { in AutoCastStand()
378 if (unit.AutoCastSpell) { in Execute()
H A Daction_upgradeto.cpp149 if (newtype.CanCastSpell && !unit.AutoCastSpell) { in TransformUnitIntoType()
150 unit.AutoCastSpell = new char[SpellTypeTable.size()]; in TransformUnitIntoType()
152 memset(unit.AutoCastSpell, 0, SpellTypeTable.size() * sizeof(char)); in TransformUnitIntoType()
H A Dcommand.cpp881 unit.AutoCastSpell[spellid] = on; in CommandAutoSpellCast()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/action/
H A Daction_still.cpp342 if (unit.AutoCastSpell && !unit.Removed) { // Removed units can't cast any spells, from bunker) in AutoCast()
344 if (unit.AutoCastSpell[i] in AutoCast()
346 && AutoCastSpell(unit, *CSpell::Spells[i])) { in AutoCast()
466 if (unit.AutoCastSpell[i] in AutoCastStand()
468 && AutoCastSpell(unit, *CSpell::Spells[i])) { in AutoCastStand()
557 if (unit.AutoCastSpell) { in Execute()
H A Daction_upgradeto.cpp311 …if (!unit.AutoCastSpell) { //to avoid crashes with spell items for units who cannot ordinarily cas… in TransformUnitIntoType()
313 unit.AutoCastSpell = new char[CSpell::Spells.size()]; in TransformUnitIntoType()
315 memset(unit.AutoCastSpell, 0, CSpell::Spells.size() * sizeof(char)); in TransformUnitIntoType()
H A Dcommand.cpp1337 unit.AutoCastSpell[spellid] = on; in CommandAutoSpellCast()
/dports/games/stratagus/stratagus-3.2.0/src/ai/
H A Dai_magic.cpp70 if (AutoCastSpell(unit, *SpellTypeTable[j])) { in AiCheckMagic()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ai/
H A Dai_magic.cpp71 if (AutoCastSpell(unit, *spell)) { in AiCheckMagic()
/dports/games/stratagus/stratagus-3.2.0/src/unit/
H A Dunit_save.cpp315 if (unit.AutoCastSpell) { in SaveUnit()
317 if (unit.AutoCastSpell[i]) { in SaveUnit()
H A Dscript_unit.cpp563 if (!unit->AutoCastSpell) { in CclUnit()
564 unit->AutoCastSpell = new char[SpellTypeTable.size()]; in CclUnit()
565 memset(unit->AutoCastSpell, 0, SpellTypeTable.size()); in CclUnit()
567 unit->AutoCastSpell[SpellTypeByIdent(s)->Slot] = 1; in CclUnit()
H A Dunit.cpp475 AutoCastSpell = NULL; in Init()
533 delete[] AutoCastSpell; in Release()
631 AutoCastSpell = new char[SpellTypeTable.size()]; in Init()
635 memcpy(AutoCastSpell, Type->AutoCastActive, SpellTypeTable.size()); in Init()
637 memset(AutoCastSpell, 0, SpellTypeTable.size()); in Init()
/dports/games/stratagus/stratagus-3.2.0/src/include/
H A Dspells.h280 extern int AutoCastSpell(CUnit &caster, const SpellType &spell);
H A Dunit.h425 char *AutoCastSpell; /// spells to auto cast variable
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/include/
H A Dspells.h313 extern int AutoCastSpell(CUnit &caster, const CSpell &spell);
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/unit/
H A Dunit_save.cpp396 if (unit.AutoCastSpell) { in SaveUnit()
398 if (unit.AutoCastSpell[i]) { in SaveUnit()
H A Dscript_unit.cpp679 if (!unit->AutoCastSpell) { in CclUnit()
680 unit->AutoCastSpell = new char[CSpell::Spells.size()]; in CclUnit()
681 memset(unit->AutoCastSpell, 0, CSpell::Spells.size()); in CclUnit()
683 unit->AutoCastSpell[CSpell::GetSpell(s)->Slot] = 1; in CclUnit()
H A Dunit.cpp538 AutoCastSpell = nullptr; in Init()
622 delete[] AutoCastSpell; in Release()
2639 AutoCastSpell = new char[CSpell::Spells.size()]; in Init()
2643 memcpy(AutoCastSpell, Type->AutoCastActive, CSpell::Spells.size()); in Init()
2645 memset(AutoCastSpell, 0, CSpell::Spells.size()); in Init()
5852 if (!this->AutoCastSpell || !spell || !this->AutoCastSpell[spell->Slot] || !spell->AutoCast) { in CanAutoCastSpell()
/dports/games/stratagus/stratagus-3.2.0/src/ui/
H A Dbotpanel.cpp294 Assert(Selected[i]->AutoCastSpell); in GetButtonStatus()
295 if (Selected[i]->AutoCastSpell[button.Value] != 1) { in GetButtonStatus()
1160 if (Selected[i]->AutoCastSpell[spellId] == 0) { in DoClicked_SpellCast()
1166 if (Selected[i]->AutoCastSpell[spellId] != autocast) { in DoClicked_SpellCast()
/dports/games/stratagus/stratagus-3.2.0/src/spell/
H A Dspells.cpp474 int AutoCastSpell(CUnit &caster, const SpellType &spell) in AutoCastSpell() function
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/ui/
H A Dbotpanel.cpp369 Assert(Selected[i]->AutoCastSpell); in GetButtonStatus()
370 if (Selected[i]->AutoCastSpell[button.Value] != 1) { in GetButtonStatus()
1954 if (Selected[i]->AutoCastSpell[spellId] == 0) { in DoClicked_SpellCast()
1960 if (Selected[i]->AutoCastSpell[spellId] != autocast) { in DoClicked_SpellCast()
H A Dmouse.cpp250 if (unit.AutoCastSpell) { in DoRightButton_AutoCast()
/dports/games/stratagus/stratagus-3.2.0/src/animation/
H A Danimation.cpp216 if (unit.AutoCastSpell[spell->Slot]) { in ParseAnimInt()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/include/unit/
H A Dunit.h594 char *AutoCastSpell; /// spells to auto cast variable
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/animation/
H A Danimation.cpp231 if (unit.AutoCastSpell[spell->Slot]) { in ParseAnimInt()
/dports/games/wyrmgus/Wyrmgus-3.5.4/src/spell/
H A Dspells.cpp821 int AutoCastSpell(CUnit &caster, const CSpell &spell) in AutoCastSpell() function