Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

aiutil.h File Reference

#include "parambox.h"

Include dependency graph for aiutil.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define DAMAGE_TYPE_NONE   0
#define DAMAGE_TYPE_ATTACK   1
#define DAMAGE_TYPE_FIRE   2
#define DAMAGE_TYPE_HIT   (DAMAGE_TYPE_ATTACK | DAMAGE_TYPE_FIRE)
#define DAMAGE_TYPE_EXPLODE   4
#define DAMAGE_TYPE_USE_OCC   8
#define DAMAGE_TYPE_USE_TSPT   16
#define VICTIM_NOTHING_SPECIAL   0
#define VICTIM_CAPTURABLE   1
#define VICTIM_SHAKEABLE   2
#define VICTIM_ENCOUNTERABLE   4

Typedefs

typedef enum a_occ_status OccStatus

Enumerations

enum  a_occ_status { CANNOT_HAVE_OCCS, MAYBE_HAS_OCCS, DEFINITELY_HAS_OCCS, DEFINITELY_HAS_NO_OCCS }

Functions

int could_damage (int u, int u2)
 Could u damage u2 by any means?

int could_destroy (int u, int u2)
int type_attack_damage_max (int u, int u2)
int type_attack_damage_min (int u, int u2)
int type_fire_damage_max (int u, int u2)
int type_fire_damage_min (int u, int u2)
int type_damage_max (int u, int u2)
int type_hit_range_max (int u, int u2)
int type_ideal_attack_range_max (int u, int u2)
int type_ideal_fire_range_max (int u, int u2)
int type_ideal_hit_range_max (int u, int u2)
int type_possible_damage_methods (int u, int u2)
OccStatus occ_status (UnitView *uview)
int planning_to_hit_type_at (Unit *unit, int u, int x, int y)
int planning_to_capture_type_at (Unit *unit, int u, int x, int y)
int side_planning_to_hit_type_at (Side *side, int u, int x, int y)
int n_planning_to_hit_type_at (Side *side, int u, int x, int y)
int side_planning_to_capture_type_at (Side *side, int u, int x, int y)
int n_planning_to_capture_type_at (Side *side, int u, int x, int y)
int has_enough_of_material (Unit *unit, int m)
int needs_n_of_material (Unit *unit, int m)
int has_full_amount_of_material (Unit *unit, int m)
int wants_n_of_material (Unit *unit, int m)
int would_starve_without_material (int u, int m)
int will_starve_wrt_material (Unit *unit, int m)
int can_donate_n_of_material (Unit *unit, int m)
int can_sacrifice_n_of_material (Unit *unit, int m)
int has_enough_of_all_materials (Unit *unit)
int has_full_amount_of_all_materials (Unit *unit)
int will_starve (Unit *unit)
int critically_needed_material (Unit *unit)
int most_needed_material (Unit *unit, int *nmost)
int most_wanted_material (Unit *unit, int *nmost)
int can_be_blocked_by_any_known_enemy_at_if_at (int x, int y, int *counter, ParamBox *parambox)
int can_be_blocked_by_any_known_enemy_if_at (int x, int y, int *counter, ParamBox *parambox)


Detailed Description

Declaration of generic functions that may be of use to an AI or intelligent UI.

Define Documentation

#define DAMAGE_TYPE_ATTACK   1
 

#define DAMAGE_TYPE_EXPLODE   4
 

#define DAMAGE_TYPE_FIRE   2
 

#define DAMAGE_TYPE_HIT   (DAMAGE_TYPE_ATTACK | DAMAGE_TYPE_FIRE)
 

#define DAMAGE_TYPE_NONE   0
 

#define DAMAGE_TYPE_USE_OCC   8
 

#define DAMAGE_TYPE_USE_TSPT   16
 

#define VICTIM_CAPTURABLE   1
 

#define VICTIM_ENCOUNTERABLE   4
 

#define VICTIM_NOTHING_SPECIAL   0
 

#define VICTIM_SHAKEABLE   2
 


Typedef Documentation

typedef enum a_occ_status OccStatus
 


Enumeration Type Documentation

enum a_occ_status
 

Enumeration values:
CANNOT_HAVE_OCCS 
MAYBE_HAS_OCCS 
DEFINITELY_HAS_OCCS 
DEFINITELY_HAS_NO_OCCS 


Function Documentation

int can_be_blocked_by_any_known_enemy_at_if_at int  x,
int  y,
int *  counter,
ParamBox parambox
 

int can_be_blocked_by_any_known_enemy_if_at int  x,
int  y,
int *  counter,
ParamBox parambox
 

int can_donate_n_of_material Unit unit,
int  m
 

int can_sacrifice_n_of_material Unit unit,
int  m
 

int could_damage int  u,
int  u2
 

Could u damage u2 by any means?

int could_destroy int  u,
int  u2
 

int critically_needed_material Unit unit  ) 
 

int has_enough_of_all_materials Unit unit  ) 
 

int has_enough_of_material Unit unit,
int  m
 

int has_full_amount_of_all_materials Unit unit  ) 
 

int has_full_amount_of_material Unit unit,
int  m
 

int most_needed_material Unit unit,
int *  nmost
 

int most_wanted_material Unit unit,
int *  nmost
 

int n_planning_to_capture_type_at Side side,
int  u,
int  x,
int  y
 

int n_planning_to_hit_type_at Side side,
int  u,
int  x,
int  y
 

int needs_n_of_material Unit unit,
int  m
 

OccStatus occ_status UnitView uview  ) 
 

int planning_to_capture_type_at Unit unit,
int  u,
int  x,
int  y
 

int planning_to_hit_type_at Unit unit,
int  u,
int  x,
int  y
 

int side_planning_to_capture_type_at Side side,
int  u,
int  x,
int  y
 

int side_planning_to_hit_type_at Side side,
int  u,
int  x,
int  y
 

int type_attack_damage_max int  u,
int  u2
 

int type_attack_damage_min int  u,
int  u2
 

int type_damage_max int  u,
int  u2
 

int type_fire_damage_max int  u,
int  u2
 

int type_fire_damage_min int  u,
int  u2
 

int type_hit_range_max int  u,
int  u2
 

int type_ideal_attack_range_max int  u,
int  u2
 

int type_ideal_fire_range_max int  u,
int  u2
 

int type_ideal_hit_range_max int  u,
int  u2
 

int type_possible_damage_methods int  u,
int  u2
 

int wants_n_of_material Unit unit,
int  m
 

int will_starve Unit unit  ) 
 

int will_starve_wrt_material Unit unit,
int  m
 

int would_starve_without_material int  u,
int  m
 


Generated on Sat Sep 17 10:29:02 2005 for XconqKernel by doxygen 1.3.6