summaryrefslogtreecommitdiffstats
path: root/kpacman/energizer.h
blob: 377cd02f7ce3998df5f8b7542733dce863460794 (plain)
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
#ifndef ENERGIZER_H
#define ENERGIZER_H

#include "board.h"

enum energizerState { on, off };

class Energizer {
public:
    Energizer(Board *b);
    void setMaxPixmaps(int max);
    void setOff();
    void setOn();
    void setPosition(int pos);
    energizerState state();
    int position();
    bool move();
    int pix();

private:
    Board   *board;

    energizerState actualState;         // the state of energizer

    int  actualPix;                     // last Pixmap-index
    int  maxPixmaps;                    // Number of Pixmaps (1..)
    int  actualPosition;                // actual position on board
};

#endif // ENERGIZER_H