aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shooter/bullet.h
blob: 19430fda4557621986c1e60aeeca2882796fc5f3 (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
#ifndef EXAMPLES_SHOOTER_BULLET_H
#define EXAMPLES_SHOOTER_BULLET_H

#include <yage/yage.h>

#include "direction.h"

class Bullet : public yage::Drawable
{
public:
    Bullet(const glm::vec4 &bound, Direction dir, float speed, float depth = 0.f);

    void draw(yage::SpriteBatch &sp);

    // getters
    glm::vec4 position() const;
private:
    glm::vec4 bound_;
    Direction dir_;
    float speed_;
    float depth_;
};

#endif