You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
615 B
C
28 lines
615 B
C
6 years ago
|
#pragma once
|
||
|
#include <allegro5/allegro.h>
|
||
|
#include <allegro5/allegro_image.h>
|
||
|
#include <map>
|
||
|
#include <string>
|
||
|
|
||
6 years ago
|
//Represents a conveyor belt line, contains data for the employees and catchers attached as well as some data about its current state
|
||
6 years ago
|
class Line {
|
||
|
public:
|
||
|
float start_x;
|
||
|
float start_y;
|
||
|
|
||
|
std::map<std::string, ALLEGRO_BITMAP*> sprites;
|
||
|
|
||
|
int catchers[3];
|
||
6 years ago
|
int employees[6];
|
||
6 years ago
|
|
||
|
bool queued;
|
||
|
bool fall;
|
||
|
bool caught;
|
||
|
|
||
|
Line(int _start_x, int _start_y, std::map<std::string, ALLEGRO_BITMAP*> _sprites);
|
||
|
|
||
|
void move();
|
||
|
void draw();
|
||
|
void add_employee();
|
||
|
void add_catcher();
|
||
|
};
|