Added code to export goal lines

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
funto66 2012-12-27 16:09:11 +00:00
parent 63e75648eb
commit 1da4be10e3
2 changed files with 43 additions and 0 deletions

View File

@ -213,6 +213,7 @@ src/tinygettext/tinygettext.cpp
src/tracks/ambient_light_sphere.cpp src/tracks/ambient_light_sphere.cpp
src/tracks/bezier_curve.cpp src/tracks/bezier_curve.cpp
src/tracks/check_cannon.cpp src/tracks/check_cannon.cpp
src/tracks/check_goal.cpp
src/tracks/check_lap.cpp src/tracks/check_lap.cpp
src/tracks/check_line.cpp src/tracks/check_line.cpp
src/tracks/check_manager.cpp src/tracks/check_manager.cpp

42
src/tracks/check_goal.hpp Normal file
View File

@ -0,0 +1,42 @@
//
// SuperTuxKart - a fun racing game with go-kart
// Copyright (C) 2012 Joerg Henrichs
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 3
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef HEADER_CHECK_GOAL_HPP
#define HEADER_CHECK_GOAL_HPP
#include "animations/animation_base.hpp"
#include "tracks/check_line.hpp"
class CheckManager;
class XMLNode;
/**
* \brief Implements a simple checkline that will score a point when the
* soccer ball crosses it.
*
* \ingroup tracks
*/
class CheckGoal : public CheckLine
{
public:
CheckGoal(const XMLNode &node, unsigned int index);
virtual ~CheckGoal() {}
virtual void trigger(unsigned int kart_index);
}; // CheckLine
#endif