#include "util/writer_fwd.hpp"
#include "util/currenton.hpp"
#include "video/color.hpp"
+#include "object/anchor_point.hpp"
namespace collision {
class Constraints;
/// read sector from lisp file
void parse(const Reader& lisp);
void parse_old_format(const Reader& lisp);
-
+
/// activates this sector (change music, initialize player class, ...)
void activate(const std::string& spawnpoint);
void activate(const Vector& player_pos);
return std::vector<Player*>(1, this->player);
}
Player *get_nearest_player (const Vector& pos);
+ Player *get_nearest_player (const Rectf& pos)
+ {
+ return (get_nearest_player (get_anchor_pos (pos, ANCHOR_MIDDLE)));
+ }
+
+ std::vector<MovingObject*> get_nearby_objects (const Vector& center, float max_distance);
Rectf get_active_region();