19#ifndef HEADER_CHECK_LINE_HPP
20#define HEADER_CHECK_LINE_HPP
22#include <triangle3d.h>
27#include "tracks/check_structure.hpp"
28#include "utils/cpp2011.hpp"
35 class SPDynamicDrawCall;
77 virtual void reset(
const Track &track) OVERRIDE;
78 virtual void resetAfterKartMove(
unsigned int kart_index) OVERRIDE;
79 virtual void resetAfterRewind(
unsigned int kart_index) OVERRIDE
80 { resetAfterKartMove(kart_index); }
81 virtual void changeDebugColor(
bool is_active) OVERRIDE;
82 virtual bool triggeringCheckline() const OVERRIDE {
return true; }
95 const Vec3 &getRightPoint()
const {
return m_right_point; }
Describes a chain of 8-bit unsigned integers.
Definition: network_string.hpp:53
Implements a simple checkline.
Definition: check_line.hpp:50
virtual CheckStructure * clone() OVERRIDE
Clone to child process for server usage (atm no sound or scripting).
Definition: check_line.hpp:97
std::vector< bool > m_previous_sign
Stores the sign (i.e.
Definition: check_line.hpp:65
std::shared_ptr< SP::SPDynamicDrawCall > m_debug_dy_dc
Used to display debug information about checklines.
Definition: check_line.hpp:68
virtual void reset(const Track &track) OVERRIDE
Initialises the 'previous positions' of all karts with the start position defined for this track.
Definition: check_line.cpp:157
Vec3 m_left_point
The actual (or estimated) left and right end points in 3d.
Definition: check_line.hpp:60
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_line.cpp:200
bool m_ignore_height
True if this line should ignore the height test.
Definition: check_line.hpp:55
irr::core::triangle3df m_check_plane[4]
The planes that are tested for being crossed.
Definition: check_line.hpp:71
void setIgnoreHeight(bool b)
Sets if this check line should not do a height test for testing if a line is crossed.
Definition: check_line.hpp:87
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