Files
Coleman-Code/COM380/Project5/GambleKit/Engine/Game/ReelModels/GkGameReelRandomModel.h
T
Amrit Panesar 39ee821f54 start 380 project5
changes to 380 project 4
changes to 350 project 2

Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
2015-05-06 10:18:39 -07:00

36 lines
751 B
C++

#pragma once
#include "..\..\GkDefinitions.h"
#include "..\GkGameReelModel.h"
struct GameReelRandomModelSymbol
{
int value, hitProbability, maxHits,
occurances;
};
class GKDLLCLASS GkGameReelRandomModel :
public GkGameReelModel
{
public:
static const int UnlimitedHits = -1;
int numSymbols;
GameReelRandomModelSymbol *symbols;
int overallProbability;
GkGameReelRandomModel(int numItems, int numSymbols);
~GkGameReelRandomModel(void);
void SetupSymbol(int symbolIndex, int symbolValue, int hitProbability = 1, int maxHits = GkGameReelRandomModel::UnlimitedHits);
bool ReplaceReelSymbol(int itemIndex, int symbolIndex, bool forceReplace);
int GetSymbolIndex();
int GetSymbol();
void GenerateReel();
void GenerateReelZero();
};