Project

General

Profile

Statistics
| Revision:

root / branches / lemmings / code / behaviors / lemmings_ibrin / lemmings.h @ 212

History | View | Annotate | Download (792 Bytes)

1

    
2

    
3

    
4
#ifndef _LEMMINGS_H_
5
#define _LEMMINGS_H_
6

    
7
//The States: 
8
#define LEAD         1        // move around randomly, leading a chain
9
#define FOLLOW         2        // follow another bot
10

    
11
#define FOLLOW_MULTI_DEFAULT 1 // set default multi-following pattern
12
#define CRAZY_MAX 200       // The number of counts between "crazy moments"
13

    
14

    
15
int cur_state;                 // current state
16
int crazy_count;    // Counter for a random behavior
17
int follow_bot;                // follow this bot (-1 if leader)
18
int follow_direction; // follow in this direction
19
int follow_multi;                // set to 0 for single-file following, 1 for tree following
20

    
21

    
22
void lemmings_init(void);
23
void lemmings_set_pattern(int pattern);
24
void lemmings_FSM(void);
25
void lemmings_Prims(void);
26
int lemmings_get_edge_weight(int robot1, int robot2);
27
void lemmings_evaluate_state(void);
28

    
29
#endif