- Main Page
- Classes
- Files

- File List
- File Members

# C:/Users/Public/AGS Final Folder/BFLETCHER D4010283/Source/Game/Source/BreakoutScoreCounter.h

Go to the documentation of this file.

    00001 #ifndef _BREAKOUTSCORECOUNTER_H_
    00002 #define _BREAKOUTSCORECOUNTER_H_
    00003
    00004 #include "Vector2.h"
    00005 #include "Colour.h"
    00006 #include "Visualisation.h"
    00007
    00008 class BreakoutScoreCounter
    00009 {
    00010         public:
    00011         BreakoutScoreCounter(const Vector2i &pos, const ColourRGB &colour, int val = 0); //Number of digits to be displayed.
    00012         ~BreakoutScoreCounter();
    00013
    00014         void Update(const int &val);
    00015         void Draw();
    00016
    00017         void SetPosition(const Vector2i &pos) { m_position = pos; }
    00018         Vector2i GetPosition() { return m_position; }
    00019
    00020         protected:
    00021         Vector2i m_position;
    00022         int m_value;
    00023         SpriteID m_digits[10]; //Constant because there's only ever going to be 10 digits (e.g. 0-9)
    00024 };
    00025
    00026 #endif