Emergency 2017 Dokumentation  v3.0.1
em5::AiAreaReservationFunctor Class Reference

AI area reservation functor. More...

#include <AiAreaReservationFunctor.h>

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.

Remarks
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:
  • TODO(bs) This is not a complete implementation yet, vehicle/mover types etc still need to be considered.

Definition at line 53 of file AiAreaReservationFunctor.h.

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 
)
overridevirtual

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