____                _       __
    / __ )____  _____   | |     / /___ ___________
   / __  / __ \/ ___/   | | /| / / __ `/ ___/ ___/
  / /_/ / /_/ (__  )    | |/ |/ / /_/ / /  (__  )
 /_____/\____/____/     |__/|__/\__,_/_/  /____/

       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"

ai_magic.cpp File Reference

AI magic functions. More...

#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


Detailed Description

AI magic functions.

Definition in file ai_magic.cpp.


Function Documentation

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


Generated on Sat Feb 21 00:28:15 2009 for Bos Wars by  doxygen 1.5.6