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 COMBOTABULATOR_H
27 #define COMBOTABULATOR_H
34 class ComboTabulator
{
38 void reportElimination ( int _magnitude
, Block
&kernel
);
40 inline void incrementInvolvement ( )
41 { ++involvement_count
; }
42 inline void decrementInvolvement ( )
43 { --involvement_count
; }
48 // latest elimination 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
60 // special elimination magnitude
61 int special_magnitude
;
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
78 // keep track of the location of the eliminations
81 // keeps track of the various special blocks which have been eliminated
82 int special
[BF_NUMBER_SPECIAL
];