1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/********************************************************************
*
*	File:		fsCTotalScoreLevel.h
*
*	Purpose:	Total score level - info to calculate score for a
*				level
*
*********************************************************************/

#ifndef fsCTotalScoreLevelhdr
#define fsCTotalScoreLevelhdr

#include <map>

#include "gfCLevelSequencerLevelComponent.h"

class fsCEntity;
struct fsPoint;

class fsCTotalScoreLevel : public gfCLevelSequencerLevelComponent
{
public:

	std::map<fsStr, fsS32>& classifiedSilhouettesGet();

	fsBool miniGameLevel();
	fsS32 noHintsUsedScoreGet() const;

	fsS32 silhouetteCountGet() const { return mSilhoutteCount; }
	fsS32 bonusCountGet() const { return mBonusCount; }

	fsS32 scoreGet();

	fsCTotalScoreLevel(const fsStr& pLevelPath, const fsStr& pLevelFolder);
	virtual ~fsCTotalScoreLevel();<--- Destructor in derived class

protected:

private:

	void silhouetteItemClassify(const fsStr& pEntityName);

	void silhouetteItemAndBonusItemCountsCalculate(const fsStr& pLevelPath, const fsStr& pLevelFolder);

	fsS32 sceneItemeScoreGet() const;
	fsS32 silhouetteItemeScoreGet() const;
	fsS32 bonusItemeScoreGet() const;

	std::map<fsStr, fsS32> mClassification;

	fsS32 mSilhoutteCount;
	fsS32 mBonusCount;
};

#endif