File: ai.h

package info (click to toggle)
ale-clone 1.15pre16.3-1
  • links: PTS
  • area: contrib
  • in suites: potato
  • size: 2,432 kB
  • ctags: 3,217
  • sloc: ansic: 37,483; sh: 1,105; makefile: 343
file content (46 lines) | stat: -rw-r--r-- 1,438 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
**	A clone of a famous game.
*/
/**@name ai.h		-	The ai headerfile. */
/*
**	(c) Copyright 1998,1999 by Lutz Sammer
**
**	$Id: ai.h,v 1.14 1999/12/03 09:18:02 root Exp $
*/

#ifndef __AI_H__
#define __AI_H__

//@{

/*----------------------------------------------------------------------------
--	Variables
----------------------------------------------------------------------------*/

extern int AiSleep;			/// Ai sleeps # frames
extern int AiTimeFactor;		/// Adjust the AI build times
extern int AiCostFactor;		/// Adjust the AI costs

/*----------------------------------------------------------------------------
--	Functions
----------------------------------------------------------------------------*/

extern void AiEachFrame(int player);	/// Called each frame
extern void AiEachSecond(int player);	/// Called each second
extern void AiInit(int player);		/// Init AI for this player

/*--------------------------------------------------------
--     Call Backs/Triggers
--------------------------------------------------------*/

extern void AiHelpMe(Unit* unit);
extern void AiWorkComplete(Unit* unit,Unit* what);
extern void AiCanNotBuild(Unit* unit,const UnitType* what);
extern void AiCanNotReach(Unit* unit,const UnitType* what);
extern void AiTrainingComplete(Unit* unit,Unit* what);
extern void AiUpgradeToComplete(Unit* unit,Unit* what);
extern void AiResearchComplete(Unit* unit,int what);

//@}

#endif	// !__AI_H__