changes to 380 project 4 changes to 350 project 2 Signed-off-by: Amrit Panesar <apanesar@4195tech.com>
33 lines
530 B
C++
33 lines
530 B
C++
#pragma once
|
|
|
|
#include "..\..\GkDefinitions.h"
|
|
|
|
#include "..\GkGameEntity.h"
|
|
|
|
class GKDLLCLASS GkGameWinningCounter :
|
|
public GkGameEntity
|
|
{
|
|
private:
|
|
float oldValue;
|
|
|
|
void SetValue(float value, float maxTime);
|
|
|
|
public:
|
|
int *actualValue;
|
|
|
|
float minSpeed, maxTime,
|
|
displayValue,
|
|
speed;
|
|
|
|
int intDisplayValue;
|
|
|
|
GkGameWinningCounter(int *actualValue, float minSpeed = 500.0f, float maxTime = 1.0f);
|
|
~GkGameWinningCounter(void);
|
|
|
|
void Reach(float maxTime = 0.0f);
|
|
bool IsCounting();
|
|
|
|
void Process(GkGame *game);
|
|
};
|
|
|