Emergency 20 Dokumentation  4.2.0
em5::AiAreaReservationFunctor Class Reference

AI area reservation functor. More...

#include <AiAreaReservationFunctor.h>

Inheritance diagram for em5::AiAreaReservationFunctor:

Public Member Functions

 AiAreaReservationFunctor ()
 Default constructor. More...
virtual Result canInsertAfterResolve (const std::vector< ContainerType::const_iterator > &collisions, const qsf::ai::Reservation &reservation, const qsf::ai::AreaConfiguration &reservationId, std::vector< bool > &deleteFlags, uint32 flags) override
- Public Member Functions inherited from qsf::ai::ReservationConflictResolver
virtual ~ReservationConflictResolver ()

Additional Inherited Members

- Public Types inherited from qsf::ai::ReservationConflictResolver
enum  AreaRelation { NONE = 0, AREAS_INTERSECT = 1 }
typedef std::vector< ReservationContainerType

Detailed Description

AI area reservation functor.

This class's operator() will be called by the qsf::ai::ReservationSystem, to query for specific reaction on scheduling problems while reserving world areas. Ranks two colliding reservations on "who has to brake harder" and decides upon this which reservation is kept/inserted.
  • TODO(bs) This is not a complete implementation yet, vehicle/mover types etc still need to be considered.

Constructor & Destructor Documentation

em5::AiAreaReservationFunctor::AiAreaReservationFunctor ( )

Default constructor.

Member Function Documentation

virtual Result em5::AiAreaReservationFunctor::canInsertAfterResolve ( const std::vector< ContainerType::const_iterator > &  collisions,
const qsf::ai::Reservation reservation,
const qsf::ai::AreaConfiguration reservationId,
std::vector< bool > &  deleteFlags,
uint32  flags 

The documentation for this class was generated from the following file: