23 |
#include "enigma.hh" |
#include "enigma.hh" |
24 |
#include "px/math.hh" |
#include "px/math.hh" |
25 |
|
|
26 |
|
#include <vector> |
27 |
#include <string> |
#include <string> |
28 |
#include <iosfwd> |
#include <iosfwd> |
29 |
|
|
186 |
/* Remove all rubber bands attached to stone ST. */ |
/* Remove all rubber bands attached to stone ST. */ |
187 |
void KillRubberBands (Stone *st); |
void KillRubberBands (Stone *st); |
188 |
|
|
189 |
|
/* fills given vector with basic info about rubbers attached to given stone */ |
190 |
|
struct Rubber_Band_Info { |
191 |
|
Actor *act; |
192 |
|
double length; |
193 |
|
double strength; |
194 |
|
}; |
195 |
|
typedef std::vector<Rubber_Band_Info> RBI_vector; |
196 |
|
void GiveRubberBands (Stone *st, RBI_vector &rubbers); |
197 |
|
|
198 |
/* Returns true if there already is a rubber band connecting `a' |
/* Returns true if there already is a rubber band connecting `a' |
199 |
and `st'. */ |
and `st'. */ |
200 |
bool HasRubberBand (Actor *a, Stone *st); |
bool HasRubberBand (Actor *a, Stone *st); |