Public Member Functions | |
Entities (LastExpressEngine *engine) | |
void | saveLoadWithSerializer (Common::Serializer &ser) override |
void | savePositions (Common::Serializer &ser) |
void | saveCompartments (Common::Serializer &ser) |
void | setup (bool isFirstChapter, EntityIndex entity) |
void | setupChapter (ChapterIndex chapter) |
void | reset () |
void | resetState (EntityIndex entity) |
void | updateFields () const |
void | updateSequences () const |
void | updateCallbacks () |
EntityIndex | canInteractWith (const Common::Point &point) const |
bool | compare (EntityIndex entity1, EntityIndex entity2) const |
void | updateFrame (EntityIndex entity) const |
void | updatePositionEnter (EntityIndex entity, CarIndex car, Position position) |
void | updatePositionExit (EntityIndex entity, CarIndex car, Position position) |
void | enterCompartment (EntityIndex entity, ObjectIndex compartment, bool useCompartment1=false) |
void | exitCompartment (EntityIndex entity, ObjectIndex compartment, bool useCompartment1=false) |
void | drawSequenceLeft (EntityIndex index, const char *sequence) const |
void | drawSequenceRight (EntityIndex index, const char *sequence) const |
void | clearSequences (EntityIndex index) const |
bool | updateEntity (EntityIndex entity, CarIndex car, EntityPosition position) const |
bool | hasValidFrame (EntityIndex entity) const |
Entity * | get (EntityIndex entity) |
EntityData::EntityCallData * | getData (EntityIndex entity) const |
int | getPosition (CarIndex car, Position position) const |
int | getCompartments (int index) const |
int | getCompartments1 (int index) const |
void | loadSceneFromEntityPosition (CarIndex car, EntityPosition position, bool alternate=false) const |
bool | isInsideCompartment (EntityIndex entity, CarIndex car, EntityPosition position) const |
bool | checkFields2 (ObjectIndex object) const |
bool | isInsideCompartments (EntityIndex entity) const |
bool | isPlayerPosition (CarIndex car, Position position) const |
bool | isInsideTrainCar (EntityIndex entity, CarIndex car) const |
bool | isInGreenCarEntrance (EntityIndex entity) const |
bool | isPlayerInCar (CarIndex car) const |
bool | isDirectionUpOrDown (EntityIndex entity) const |
bool | isDistanceBetweenEntities (EntityIndex entity1, EntityIndex entity2, uint distance) const |
bool | checkFields10 (EntityIndex entity) const |
bool | isSomebodyInsideRestaurantOrSalon () const |
bool | isInSalon (EntityIndex entity) const |
bool | isInRestaurant (EntityIndex entity) const |
bool | isInKronosSalon (EntityIndex entity) const |
bool | isOutsideAlexeiWindow () const |
bool | isOutsideAnnaWindow () const |
bool | isInKitchen (EntityIndex entity) const |
bool | isNobodyInCompartment (CarIndex car, EntityPosition position) const |
bool | checkFields19 (EntityIndex entity, CarIndex car, EntityPosition position) const |
bool | isInBaggageCarEntrance (EntityIndex entity) const |
bool | isInBaggageCar (EntityIndex entity) const |
bool | isInKronosSanctum (EntityIndex entity) const |
bool | isInKronosCarEntrance (EntityIndex entity) const |
bool | checkDistanceFromPosition (EntityIndex entity, EntityPosition position, int distance) const |
bool | isWalkingOppositeToPlayer (EntityIndex entity) const |
Static Public Member Functions | |
static bool | isFemale (EntityIndex entity) |
static bool | isMarried (EntityIndex entity) |
void LastExpress::Entities::resetState | ( | EntityIndex | entity | ) |
Reset an entity state
entity | entity index |
void LastExpress::Entities::updateFrame | ( | EntityIndex | entity | ) | const |
Update an entity current sequence frame (and related fields)
entity | entity index |
bool LastExpress::Entities::isInsideCompartment | ( | EntityIndex | entity, |
CarIndex | car, | ||
EntityPosition | position | ||
) | const |
Query if 'entity' is inside a compartment
entity | The entity. |
car | The car. |
position | The position. |
bool LastExpress::Entities::isInsideCompartments | ( | EntityIndex | entity | ) | const |
Query if 'entity' is in compartment cars.
entity | The entity. |
bool LastExpress::Entities::isPlayerPosition | ( | CarIndex | car, |
Position | position | ||
) | const |
Query if the player is in the specified position
car | The car. |
position | The position. |
bool LastExpress::Entities::isInsideTrainCar | ( | EntityIndex | entity, |
CarIndex | car | ||
) | const |
Query if 'entity' is inside a train car
entity | The entity. |
car | The car. |
bool LastExpress::Entities::isInGreenCarEntrance | ( | EntityIndex | entity | ) | const |
Query if 'entity' is in green car entrance.
entity | The entity. |
bool LastExpress::Entities::isPlayerInCar | ( | CarIndex | car | ) | const |
Query if the player is in a specific car
car | The car. |
bool LastExpress::Entities::isDirectionUpOrDown | ( | EntityIndex | entity | ) | const |
Query if 'entity' is going in the up or down direction.
entity | The entity. |
bool LastExpress::Entities::isDistanceBetweenEntities | ( | EntityIndex | entity1, |
EntityIndex | entity2, | ||
uint | distance | ||
) | const |
Query if the distance between the two entities is less 'distance'
entity1 | The first entity. |
entity2 | The second entity. |
distance | The distance. |
bool LastExpress::Entities::isSomebodyInsideRestaurantOrSalon | ( | ) | const |
Query if there is somebody in the restaurant or salon.
bool LastExpress::Entities::isInSalon | ( | EntityIndex | entity | ) | const |
Query if 'entity' is in the salon.
entity | The entity. |
bool LastExpress::Entities::isInRestaurant | ( | EntityIndex | entity | ) | const |
Query if 'entity' is in the restaurant.
entity | The entity. |
bool LastExpress::Entities::isInKronosSalon | ( | EntityIndex | entity | ) | const |
bool LastExpress::Entities::isOutsideAlexeiWindow | ( | ) | const |
Query if the player is outside Alexei window.
bool LastExpress::Entities::isOutsideAnnaWindow | ( | ) | const |
Query if the player is outside Anna window.
bool LastExpress::Entities::isInKitchen | ( | EntityIndex | entity | ) | const |
Query if 'entity' is in the kitchen.
entity | The entity. |
bool LastExpress::Entities::isNobodyInCompartment | ( | CarIndex | car, |
EntityPosition | position | ||
) | const |
Query if nobody is in a compartment at that position.
car | The car. |
position | The position. |
bool LastExpress::Entities::isInBaggageCarEntrance | ( | EntityIndex | entity | ) | const |
Query if 'entity' is in the baggage car entrance.
entity | The entity. |
bool LastExpress::Entities::isInBaggageCar | ( | EntityIndex | entity | ) | const |
Query if 'entity' is in the baggage car.
entity | The entity. |
bool LastExpress::Entities::isInKronosSanctum | ( | EntityIndex | entity | ) | const |
bool LastExpress::Entities::isInKronosCarEntrance | ( | EntityIndex | entity | ) | const |
bool LastExpress::Entities::checkDistanceFromPosition | ( | EntityIndex | entity, |
EntityPosition | position, | ||
int | distance | ||
) | const |
Check distance from position.
entity | The entity. |
position | The position. |
distance | The distance. |
bool LastExpress::Entities::isWalkingOppositeToPlayer | ( | EntityIndex | entity | ) | const |
Query if 'entity' is walking opposite to player.
entity | The entity. |
|
static |
Query if 'entity' is female.
entity | The entity. |
|
static |
Query if 'entity' is married.
entity | The entity. |