Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/track.cc @ 3542

Last change on this file since 3542 was 3399, checked in by bensch, 20 years ago

orxonox/branches/nico: merged trunk into branches/nico
merged with command:
svn merge ../trunk/ nico/ -r 3238:HEAD
resolved conflict in favor of branches/nico.

File size: 2.0 KB
Line 
1
2
3/*
4   orxonox - the future of 3D-vertical-scrollers
5
6   Copyright (C) 2004 orx
7
8   This program is free software; you can redistribute it and/or modify
9   it under the terms of the GNU General Public License as published by
10   the Free Software Foundation; either version 2, or (at your option)
11   any later version.
12
13   ### File Specific:
14   main-programmer: Christian Meyer
15   co-programmer: ...
16*/
17
18#include "track.h"
19
20using namespace std;
21
22/**
23   \brief creates a null Track part
24*/
25Track::Track ()
26{
27  this->ID = 0;
28  this->offset = NULL;
29  this->end = NULL;
30  this->nextID = 0;
31  this->setClassName ("Track");
32}
33
34/**
35   \brief creates a functional base Track part
36   \param number: the ID if this Track part
37   \param next: the ID of the next Track part
38   \param start: pointer to an anchor point (Vector) representing the offset of this part
39   \param finish: pointer to an anchor point (Vector) representing the end of this part
40*/
41Track::Track (Uint32 number, Uint32 next, Vector* start, Vector* finish)
42{
43  this->ID = number;
44  this->offset = start;
45  this->end = finish;
46  this->nextID = next;
47  this->setClassName ("Track");
48}
49
50/**
51   \brief removes the Track part from memory
52*/
53Track::~Track ()
54{
55}
56
57void Track::init()
58{
59 
60}
61
62
63
64
65
66/**
67   \brief this is called when a WorldEntity enters a Track part
68   \param entity: pointer to the WorldEntity in question
69   
70   You can do stuff like add or remove effects, do some coordinate finetuning
71   or whatever in here.
72*/
73void Track::postEnter (WorldEntity* entity)
74{
75}
76
77
78/**
79   \brief this is called when a WorldEntity leaves a Track part
80   \param entity: pointer to the WorldEntity in question
81   
82   You can do stuff like add or remove effects, do some coordinate finetuning
83   or whatever in here.
84*/
85void Track::postLeave (WorldEntity* entity)
86{
87}
88
89
90/**
91   \brief this is called every frame
92   \param deltaT: amount of time passed since the last frame in seconds
93   
94   Do time based or polling scripts here.
95*/
96void Track::tick (float deltaT)
97{
98}
99
100
101
102
103
Note: See TracBrowser for help on using the repository browser.