19#ifndef HEADER_CHECK_LAP_HPP
20#define HEADER_CHECK_LAP_HPP
22#include "tracks/check_structure.hpp"
23#include "utils/cpp2011.hpp"
45 virtual void reset(
const Track &track) OVERRIDE;
46 virtual bool triggeringCheckline() const OVERRIDE {
return true; }
Implements a simple lap test.
Definition: check_lap.hpp:35
std::vector< float > m_previous_distance
Store the previous distance along track.
Definition: check_lap.hpp:38
virtual CheckStructure * clone() OVERRIDE
Clone to child process for server usage (atm no sound or scripting).
Definition: check_lap.hpp:48
virtual void reset(const Track &track) OVERRIDE
Initialises the 'previous positions' of all karts with the start position defined for this track.
Definition: check_lap.cpp:44
virtual bool isTriggered(const Vec3 &old_pos, const Vec3 &new_pos, int indx) OVERRIDE
True if going from old_pos to new_pos crosses this checkline.
Definition: check_lap.cpp:61
Controls all checks structures of a track.
Definition: check_manager.hpp:40
Virtual base class for a check structure.
Definition: check_structure.hpp:52
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