~swag/armagetronad/0.2.9-sty+ct+ap-fork

« back to all changes in this revision

Viewing changes to src/tron/gSparks.h

  • Committer: luke-jr
  • Date: 2006-05-29 01:55:42 UTC
  • Revision ID: svn-v3-list-QlpoOTFBWSZTWZvbKhsAAAdRgAAQABK6798QIABURMgAAaeoNT1TxT1DQbKaeobXKiyAmlWT7Y5MkdJOtXDtB7w7DOGFBHiOBxaUIu7HQyyQSvxdyRThQkJvbKhs:7d95bf1e-0414-0410-9756-b78462a59f44:armagetronad%2Fbranches%2F0.2.8%2Farmagetronad:4612
Unify tags/branches of modules released together

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 
 
3
*************************************************************************
 
4
 
 
5
ArmageTron -- Just another Tron Lightcycle Game in 3D.
 
6
Copyright (C) 2000  Manuel Moos (manuel@moosnet.de)
 
7
 
 
8
**************************************************************************
 
9
 
 
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.
 
14
 
 
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.
 
19
 
 
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.
 
23
  
 
24
***************************************************************************
 
25
 
 
26
*/
 
27
 
 
28
#ifndef ArmageTron_gSparks_H
 
29
#define ArmageTron_gSparks_H
 
30
 
 
31
#include "eSound.h"
 
32
#include "eGameObject.h"
 
33
#include "rModel.h"
 
34
 
 
35
class gSpark: public eGameObject{ // When the player nearly hits a eWall
 
36
    REAL createTime;
 
37
 
 
38
#define SPARKS 10
 
39
 
 
40
    Vec3 x         [SPARKS];
 
41
    Vec3 lastX     [SPARKS];
 
42
    Vec3 preLastX  [SPARKS];
 
43
    Vec3 xDot      [SPARKS];
 
44
    REAL heat      [SPARKS];
 
45
    REAL lastBreak [SPARKS];
 
46
    REAL sparkowncolor_r;
 
47
    REAL sparkowncolor_g;
 
48
    REAL sparkowncolor_b;
 
49
    REAL sparkenemycolor_r;
 
50
    REAL sparkenemycolor_g;
 
51
    REAL sparkenemycolor_b;
 
52
 
 
53
private:
 
54
public:
 
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);
 
56
    virtual ~gSpark();
 
57
 
 
58
    virtual bool Timestep(REAL currentTime);
 
59
 
 
60
    virtual void InteractWith(eGameObject *target,REAL time,int recursion=1);
 
61
 
 
62
    virtual void PassEdge(const eWall *e,REAL time,REAL a,int recursion=1);
 
63
 
 
64
    virtual void Kill();
 
65
 
 
66
#ifndef DEDICATED
 
67
    virtual void Render(const eCamera *cam);
 
68
 
 
69
    virtual void SoundMix(Uint8 *dest,unsigned int len,
 
70
                          int viewer,REAL rvol,REAL lvol);
 
71
#endif
 
72
};
 
73
 
 
74
#endif