3 * Daniel Nelson - 8/24/0
5 * Copyright (C) 2000 Daniel Nelson
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21 * Daniel Nelson - aluminumangel.org
26 #ifndef SPARKMANAGER_H
27 #define SPARKMANAGER_H
31 #include "Displayer.h"
64 /* static */ class SparkleManager
{
66 static void initialize ( );
67 static void timeStep ( );
69 static void createBlockDeathSpark ( int x
, int y
, int color
, int n
);
70 static void createCelebrationSpark ( int source
, int color
);
71 static void createRewardMote ( int x
, int y
, int level
,
72 int sibling_number
= 0 );
74 // the block death sparkles
75 static int spark_count
;
76 static Spark sparks
[DC_MAX_SPARK_NUMBER
];
78 // the combo reward sparkles
79 static int mote_count
;
80 static Mote motes
[DC_MAX_MOTE_NUMBER
];
83 static const int mote_colors
[DC_NUMBER_MOTE_LEVELS
];
84 static const int mote_light_colors
[DC_NUMBER_MOTE_LEVELS
];
85 static const int mote_types
[DC_NUMBER_MOTE_LEVELS
];
86 static const GLfloat mote_sizes
[DC_NUMBER_MOTE_LEVELS
];
87 static const float mote_inverse_masses
[DC_NUMBER_MOTE_LEVELS
];