Fixes for datatype size on amd64.
[crack-attack.git] / src / ComboTabulator.h
blob6628ffa611555104d57ee38207e4ce19ad8dab65
1 /*
2 * ComboTabulator.h
3 * Daniel Nelson - 8/24/0
5 * Copyright (C) 2000 Daniel Nelson
6 *
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
22 * 174 W. 18th Ave.
23 * Columbus, OH 43210
26 #ifndef COMBOTABULATOR_H
27 #define COMBOTABULATOR_H
30 #include "Game.h"
32 class Block;
34 class ComboTabulator {
35 public:
36 void initialize ( );
38 void reportElimination ( int _magnitude, Block &kernel );
40 inline void incrementInvolvement ( )
41 { ++involvement_count; }
42 inline void decrementInvolvement ( )
43 { --involvement_count; }
45 // free store id
46 int id;
48 // latest elimination time stamp
49 int time_stamp;
51 // creation time stamp
52 int creation_time_stamp;
54 // number of blocks involved in combo
55 int involvement_count;
57 // normal elimination magnitude
58 int magnitude;
60 // special elimination magnitude
61 int special_magnitude;
63 // combo multiplier
64 int multiplier;
66 // number of multipliers this time step
67 int n_multipliers_this_step;
69 // base score earned so far on this multiplier
70 int base_accumulated_score;
72 // base score earned so far on this turn
73 int base_score_this_step;
75 // used by blocks the step after elimination to determine spark number
76 int latest_magnitude;
78 // keep track of the location of the eliminations
79 int x, y;
81 // keeps track of the various special blocks which have been eliminated
82 int special[BF_NUMBER_SPECIAL];
85 #endif