19#ifndef HEADER_CHECK_MANAGER_HPP
20#define HEADER_CHECK_MANAGER_HPP
22#include "utils/no_copy.hpp"
42 std::vector<CheckStructure*> m_all_checks;
52 void resetAfterRewind();
58 {
return (
unsigned int) m_all_checks.size(); }
63 assert(n < m_all_checks.size());
64 return m_all_checks[n];
An abstract interface for the actual karts.
Definition: abstract_kart.hpp:62
Controls all checks structures of a track.
Definition: check_manager.hpp:40
void update(float dt)
Updates all animations.
Definition: check_manager.cpp:181
CheckStructure * getCheckStructure(unsigned int n) const
Returns the nth.
Definition: check_manager.hpp:61
void addFlyableToCannons(Flyable *flyable)
Adds a flyable object to be tested against cannons.
Definition: check_manager.cpp:151
~CheckManager()
Private destructor (to make sure it is only called using the static destroy function).
Definition: check_manager.cpp:101
void load(const XMLNode &node)
Loads all check structure informaiton from the specified xml file.
Definition: check_manager.cpp:38
unsigned int getCheckStructureCount() const
Returns the number of check structures defined.
Definition: check_manager.hpp:57
int getChecklineTriggering(const Vec3 &from, const Vec3 &to) const
Returns the check line index that is triggered when going from 'from' to 'to'.
Definition: check_manager.cpp:219
unsigned int getLapLineIndex() const
Returns the index of the first check structures that triggers a new lap to be counted.
Definition: check_manager.cpp:192
void resetAfterKartMove(AbstractKart *kart)
Called after a kart is moved (e.g.
Definition: check_manager.cpp:125
void reset(const Track &track)
Resets all checks.
Definition: check_manager.cpp:112
void removeFlyableFromCannons(Flyable *flyable)
Removes a flyable from all cannons.
Definition: check_manager.cpp:166
Virtual base class for a check structure.
Definition: check_structure.hpp:52
Definition: flyable.hpp:50
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
Definition: track.hpp:114
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35
utility class used to parse XML files
Definition: xml_node.hpp:48