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

score.c File Reference

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

Include dependency graph for score.c:

Include dependency graph

Classes

struct  a_score_record

Defines

#define scorekeeper_applicable(side, sk)   ((side)->ingame && (side_in_set((side), (sk)->whomask)))
#define for_all_score_records(sr)   for ((sr) = records; (sr) != NULL; (sr) = (sr)->next)

Typedefs

typedef a_score_record ScoreRecord

Functions

void init_scorekeepers (void)
Scorekeepercreate_scorekeeper (void)
Scorekeeperfind_scorekeeper (int id)
void init_scores (void)
SideMask generate_effective_sk_whomask (Scorekeeper *sk)
void check_pre_turn_scores (void)
void check_post_turn_scores (void)
void check_post_action_scores (void)
void check_post_event_scores (void)
void run_scorekeeper (Side *side, Scorekeeper *sk)
Objsum_uprop (Side *side, Obj *form)
int point_value (Unit *unit)
int side_point_value (Side *side)
int alliance_point_value (Side *side)
int has_allies (Side *side)
Objeval_sk_test (Side *side, Scorekeeper *sk, Obj *form)
Objeval_sk_form (Side *side, Scorekeeper *sk, Obj *form)
void side_wins (Side *side, int why)
void side_loses (Side *side, Side *side2, int why)
void all_sides_draw (void)
void record_into_scorefile (void)
char * get_scores (Side *side)

Variables

Scorekeeperscorekeepers
 Scorekeeper list.

Scorekeeperlast_scorekeeper
int numscorekeepers
 Number of scorekeepers.

int nextskid
int numscores
 Number of scores.

int any_pre_turn_scores
int any_post_turn_scores
int any_post_action_scores
 Any post action scores? ???

int any_post_event_scores
 Any Post event scores? ???

int any_turn_specific_scores
ScoreRecordrecords

Define Documentation

#define for_all_score_records sr   )     for ((sr) = records; (sr) != NULL; (sr) = (sr)->next)
 

#define scorekeeper_applicable side,
sk   )     ((side)->ingame && (side_in_set((side), (sk)->whomask)))
 


Typedef Documentation

typedef struct a_score_record ScoreRecord
 


Function Documentation

void all_sides_draw void   ) 
 

int alliance_point_value Side side  ) 
 

void check_post_action_scores void   ) 
 

void check_post_event_scores void   ) 
 

void check_post_turn_scores void   ) 
 

void check_pre_turn_scores void   ) 
 

Scorekeeper* create_scorekeeper void   ) 
 

Obj* eval_sk_form Side side,
Scorekeeper sk,
Obj form
 

Obj* eval_sk_test Side side,
Scorekeeper sk,
Obj form
 

Scorekeeper* find_scorekeeper int  id  ) 
 

SideMask generate_effective_sk_whomask Scorekeeper sk  ) 
 

char* get_scores Side side  ) 
 

int has_allies Side side  ) 
 

void init_scorekeepers void   ) 
 

void init_scores void   ) 
 

int point_value Unit unit  ) 
 

void record_into_scorefile void   ) 
 

void run_scorekeeper Side side,
Scorekeeper sk
 

void side_loses Side side,
Side side2,
int  why
 

int side_point_value Side side  ) 
 

void side_wins Side side,
int  why
 

Obj* sum_uprop Side side,
Obj form
 


Variable Documentation

int any_post_action_scores
 

Any post action scores? ???

int any_post_event_scores
 

Any Post event scores? ???

int any_post_turn_scores
 

int any_pre_turn_scores
 

int any_turn_specific_scores
 

Scorekeeper* last_scorekeeper
 

int nextskid
 

int numscorekeepers
 

Number of scorekeepers.

int numscores
 

Number of scores.

ScoreRecord* records
 

Scorekeeper* scorekeepers
 

Scorekeeper list.


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