summaryrefslogtreecommitdiff
path: root/Creature.h
blob: eb0f192db0249a1a3eb4cd438d428a8340718b3e (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
31
32
33
34
35
36
#ifndef CREATURE_H
#define CREATURE_H

#include "Sprite.h"

class Creature : public Sprite {
    public:
        Creature();

        // Get velocities
        int getXVel();
        int getYVel();

        // Set velocities
        void setXVel(int xVel);
        void setYVel(int yVel);

        // Increment velocities
        void incXVel(int xVel);
        void incYVel(int yVel);

        int getHealth();
        void setHealth(int h);

        // Set correct sprite clip for current situation
        void orient();

    protected:
        // Velocities
        int xVel, yVel;

        // Health
        int health;
};

#endif