Revision aa28526f
ID | aa28526f85cb1940af013cf0ef8eebc98bbc6f54 |
Fixed more errors of indentation and spaces.
scout/libscout/src/behaviors/navigationMap.cpp | ||
---|---|---|
98 | 98 |
navigationMap::update_state(Turn turn_made) |
99 | 99 |
{ |
100 | 100 |
Edge* possible_edges = get_outbound_edges(current_state); |
101 |
int arr_size = sizeof(possible_edges)/sizeof(Edge);
|
|
102 |
for(i=0;i<arr_size;i++)
|
|
103 |
{
|
|
101 |
int arr_size = sizeof(possible_edges)/sizeof(Edge);
|
|
102 |
for(i=0;i<arr_size;i++)
|
|
103 |
{
|
|
104 | 104 |
//sets the current state to the state associated with the turn made |
105 | 105 |
if(GET_EDGE_DIR(possible_edges[i]) == turn_made) |
106 | 106 |
{ |
... | ... | |
127 | 127 |
|
128 | 128 |
navigationMap::get_state() |
129 | 129 |
{ |
130 |
return curr_state;
|
|
130 |
return curr_state;
|
|
131 | 131 |
} |
132 | 132 |
|
133 | 133 |
navigationMap::get_outbound_edges(State state) |
134 | 134 |
{ |
135 |
return map(state-1);
|
|
135 |
return map(state-1);
|
|
136 | 136 |
} |
137 | 137 |
|
138 | 138 |
navigationMap::shortest_path(State target_state) |
Also available in: Unified diff