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
35 class ComboTabulator
{
39 void reportElimination ( int _magnitude
, Block
&kernel
);
41 inline void incrementInvolvement ( )
42 { ++involvement_count
; }
43 inline void decrementInvolvement ( )
44 { --involvement_count
; }
49 // latest elimination time stamp
52 // creation time stamp
53 int creation_time_stamp
;
55 // number of blocks involved in combo
56 int involvement_count
;
58 // normal elimination magnitude
61 // special elimination magnitude
62 int special_magnitude
;
67 // number of multipliers this time step
68 int n_multipliers_this_step
;
70 // base score earned so far on this multiplier
71 int base_accumulated_score
;
73 // base score earned so far on this turn
74 int base_score_this_step
;
76 // used by blocks the step after elimination to determine spark number
79 // keep track of the location of the eliminations
82 // keeps track of the various special blocks which have been eliminated
83 int special
[BF_NUMBER_SPECIAL
];