130 return dynamic_cast<Area *
>(object);
134 return dynamic_cast<Waypoint *
>(object);
138 return dynamic_cast<Placeable *
>(object);
142 return dynamic_cast<Creature *
>(object);
147 if (!pc || !pc->
isPC())
154 return dynamic_cast<Location *
>(engineType);
158 return dynamic_cast<Event *
>(engineType);
An object within a Jade Empire area.
::Aurora::NWScript::ObjectSearch * findObjectsByType(ObjectType type) const
Return a search context to iterate over all objects of this type.
void addObject(Jade::Object &object)
Add an object to this container.
std::list< Jade::Object * > ::const_iterator iterator
A waypoint in a Jade Empire area.
static Creature * toCreature(Aurora::NWScript::Object *object)
A placeable in a Jade Empire area.
void removeObject(Jade::Object &object)
Remove an object from this container.
static Placeable * toPlaceable(Aurora::NWScript::Object *object)
static Waypoint * toWaypoint(Aurora::NWScript::Object *object)
static Creature * toPC(Aurora::NWScript::Object *object)
SearchRange(const range &r)
static Event * toEvent(Aurora::NWScript::EngineType *engineType)
SearchType(const type &l)
A container of Jade Empire objects.
bool operator()(Jade::Object *a, Jade::Object *b)
static Jade::Object * toObject(::Aurora::NWScript::Object *object)
Utility templates and functions.
An area in Jade Empire, holding all objects and rooms within, as well as general area properties like...
::Aurora::NWScript::Object * getObject(const iterator &t)
Low-level type definitions to handle fixed width types portably.
void removeObject(Object &object)
Remove an object from this container.
Object * get()
Return the current object in the search context.
std::list< Jade::Object * > type
virtual void getPosition(float &x, float &y, float &z) const
Return the object's position within its area.
An object within a Jade area.
A location within a Jade Empire area.
::Aurora::NWScript::Object * getFirstObjectByType(ObjectType type) const
Return the first object of this type.
ObjectList _objects[kObjectTypeMAX]
static Area * toArea(Aurora::NWScript::Object *object)
static Location * toLocation(Aurora::NWScript::EngineType *engineType)
float getDistance(Jade::Object &a)
ObjectDistanceSort(const Jade::Object &target)
bool isPC() const
Is the creature a player character?
SearchType(const iterator &a, const iterator &b)
void addObject(Object &object)
Add an object to this container.
A creature in a Jade Empire area.