Files
viseq/src/moveable.h
T

21 lines
377 B
C++
Raw Normal View History

2024-10-09 02:01:23 +02:00
#pragma once
#include "datatypes.h"
class Movable{
public:
Movable(){}
Movable(Vec2D<float> p, Vec2D<float> d, float s) : speed(s), position(p), direction(d) {}
Movable(Vec2D<float> p, float s) : speed(s), position(p) {}
float speed = 1.0f;
Vec2D<float> position;
Vec2D<float> direction;
virtual void update() {};
virtual void draw(Vec2D<float> *mouse) {};
2024-10-09 02:01:23 +02:00
};