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

run.c File Reference

#include "conq.h"
#include "kernel.h"
#include "kpublic.h"

Include dependency graph for run.c:

Include dependency graph

Functions

void allocate_used_cells (Unit *unit)
void init_run (void)
int run_game (int maxactions)
void finish_turn (Side *side)
void set_play_rate (int slow, int fast)
void resign_game (Side *side, Side *side2)
int realtime_game (void)
int all_others_willing_to_save (Side *side)
int all_others_willing_to_quit (Side *side)
void end_the_game (void)
void update_canresearch_vector (Side *side)
void update_side_research_goal_availability (Side *side)
void update_canbuild_vector (Side *side)
void update_cancarry_vector (Side *side)
void run_people ()
void run_advanced_units ()
int production_at (int x, int y, int m)
void kick_out_enemy_users (Side *side, int x, int y)
void auto_pick_unit_research (Unit *unit)
void auto_pick_side_research (Side *side)

Variables

Actionlatest_action = NULL
int latest_action_x
int latest_action_y
int curpriority
int cur_unit_priority
int highest_unit_priority
int lowest_unit_priority
int maintimeout = -1
int paused = FALSE
int gameinited = FALSE
 Game initialized flag.

int beforestart = TRUE
 Game not started flag.

int at_turn_start = FALSE
int endofgame = FALSE
 End of game flag.

int ok_to_exit
int gamestatesafe = TRUE
 Game in safe state flag.

int compromised = FALSE
 Game compromised flag.

int in_run_game = FALSE
time_t game_start_in_real_time
 Game started in real time flag.

time_t turn_play_start_in_real_time
 Turn play start in real time.

int planexecs
int taskexecs
int slow_play_rate = 240
int fast_play_rate = 0
int current_play_rate
int need_post_event_scores
int need_ai_init_turn
int need_ai_planning
int need_ai_action_reaction
int need_ai_for_new_side
int need_ai_finish_movement
int debugging_state_sync

Function Documentation

int all_others_willing_to_quit Side side  ) 
 

int all_others_willing_to_save Side side  ) 
 

void allocate_used_cells Unit unit  ) 
 

void auto_pick_side_research Side side  ) 
 

void auto_pick_unit_research Unit unit  ) 
 

void end_the_game void   ) 
 

void finish_turn Side side  ) 
 

void init_run void   ) 
 

void kick_out_enemy_users Side side,
int  x,
int  y
 

int production_at int  x,
int  y,
int  m
 

int realtime_game void   ) 
 

void resign_game Side side,
Side side2
 

void run_advanced_units void   ) 
 

int run_game int  maxactions  ) 
 

void run_people void   ) 
 

void set_play_rate int  slow,
int  fast
 

void update_canbuild_vector Side side  ) 
 

void update_cancarry_vector Side side  ) 
 

void update_canresearch_vector Side side  ) 
 

void update_side_research_goal_availability Side side  ) 
 


Variable Documentation

int at_turn_start = FALSE
 

int beforestart = TRUE
 

Game not started flag.

int compromised = FALSE
 

Game compromised flag.

int cur_unit_priority
 

int curpriority
 

int current_play_rate
 

int debugging_state_sync
 

int endofgame = FALSE
 

End of game flag.

int fast_play_rate = 0
 

time_t game_start_in_real_time
 

Game started in real time flag.

int gameinited = FALSE
 

Game initialized flag.

int gamestatesafe = TRUE
 

Game in safe state flag.

int highest_unit_priority
 

int in_run_game = FALSE
 

Action* latest_action = NULL
 

int latest_action_x
 

int latest_action_y
 

int lowest_unit_priority
 

int maintimeout = -1
 

int need_ai_action_reaction
 

int need_ai_finish_movement
 

int need_ai_for_new_side
 

int need_ai_init_turn
 

int need_ai_planning
 

int need_post_event_scores
 

int ok_to_exit
 

int paused = FALSE
 

int planexecs
 

int slow_play_rate = 240
 

int taskexecs
 

time_t turn_play_start_in_real_time
 

Turn play start in real time.


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