3
*************************************************************************
5
ArmageTron -- Just another Tron Lightcycle Game in 3D.
6
Copyright (C) 2000 Manuel Moos (manuel@moosnet.de)
8
**************************************************************************
10
This program is free software; you can redistribute it and/or
11
modify it under the terms of the GNU General Public License
12
as published by the Free Software Foundation; either version 2
13
of the License, or (at your option) any later version.
15
This program is distributed in the hope that it will be useful,
16
but WITHOUT ANY WARRANTY; without even the implied warranty of
17
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
GNU General Public License for more details.
20
You should have received a copy of the GNU General Public License
21
along with this program; if not, write to the Free Software
22
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
***************************************************************************
28
#ifndef ArmageTron_gSparks_H
29
#define ArmageTron_gSparks_H
32
#include "eGameObject.h"
35
class gSpark: public eGameObject{ // When the player nearly hits a eWall
42
Vec3 preLastX [SPARKS];
45
REAL lastBreak [SPARKS];
49
REAL sparkenemycolor_r;
50
REAL sparkenemycolor_g;
51
REAL sparkenemycolor_b;
55
gSpark(eGrid *grid, const eCoord &pos,const eCoord &dir,REAL time,REAL ocolor_r,REAL ocolor_g,REAL ocolor_b,REAL ecolor_r,REAL ecolor_g,REAL ecolor_b);
58
virtual bool Timestep(REAL currentTime);
60
virtual void InteractWith(eGameObject *target,REAL time,int recursion=1);
62
virtual void PassEdge(const eWall *e,REAL time,REAL a,int recursion=1);
67
virtual void Render(const eCamera *cam);
69
virtual void SoundMix(Uint8 *dest,unsigned int len,
70
int viewer,REAL rvol,REAL lvol);