____ _ __
/ __ )____ _____ | | / /___ ___________
/ __ / __ \/ ___/ | | /| / / __ `/ ___/ ___/
/ /_/ / /_/ (__ ) | |/ |/ / /_/ / / (__ )
/_____/\____/____/ |__/|__/\__,_/_/ /____/
A futuristic real-time strategy game.
This file is part of Bos Wars.
(C) Copyright 2001-2007 by the Bos Wars and Stratagus Project.
Distributed under the "GNU General Public License"
#include <stdio.h>
#include <stdlib.h>
#include "stratagus.h"
#include "unittype.h"
#include "unit.h"
#include "spells.h"
#include "actions.h"
#include "map.h"
#include "ai_local.h"
#include "player.h"
Go to the source code of this file.
Functions | |
| void | AiCheckMagic (void) |
| < Check for magic | |
Definition in file ai_magic.cpp.
| void AiCheckMagic | ( | void | ) |
< Check for magic
Check what computer units can do with magic. In fact, turn on autocast for AI.
Definition at line 55 of file ai_magic.cpp.
References AiPlayer, AutoCastSpell(), CUnitType::CanCastSpell, PlayerAi::Player, SpellIsAvailable(), SpellTypeTable, CPlayer::TotalNumUnits, CUnit::Type, and CPlayer::Units.
Referenced by AiEachSecond().
1.5.6