119 |
// Variables. |
// Variables. |
120 |
Actor *actor, *actor2; |
Actor *actor, *actor2; |
121 |
Stone *stone; |
Stone *stone; |
122 |
display::RubberID model; |
display::RubberHandle model; |
123 |
double strength, length; |
double strength, length; |
124 |
}; |
}; |
125 |
} |
} |
333 |
h = hh; |
h = hh; |
334 |
} |
} |
335 |
~Level() { |
~Level() { |
336 |
|
fields = FieldArray(0,0); |
337 |
for_each(actorlist.begin(), actorlist.end(), mem_fun(&Actor::dispose)); |
for_each(actorlist.begin(), actorlist.end(), mem_fun(&Actor::dispose)); |
338 |
delete_sequence (rubbers.begin(), rubbers.end()); |
delete_sequence (rubbers.begin(), rubbers.end()); |
|
fields = FieldArray(0,0); |
|
339 |
} |
} |
340 |
|
|
341 |
bool contains (GridPos p) { |
bool contains (GridPos p) { |
602 |
normal /= length(normal); |
normal /= length(normal); |
603 |
|
|
604 |
if (length(ai->vel) > 0.1) { |
if (length(ai->vel) > 0.1) { |
605 |
AddSprite(display::SPRITE_EFFECT, sc.contact_point, "ring-anim"); |
display::AddEffect (sc.contact_point, "ring-anim"); |
606 |
sound::PlaySound(sc.sound.c_str(), px::V2(sc.contact_point[0], |
sound::PlaySound(sc.sound.c_str(), px::V2(sc.contact_point[0], |
607 |
sc.contact_point[1])); |
sc.contact_point[1])); |
608 |
} |
} |