You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
362 B
21 lines
362 B
#ifndef _SHELF_H
|
|
#define _SHELF_H
|
|
|
|
#include <vector>
|
|
#include "item.h"
|
|
|
|
class Shelf {
|
|
public:
|
|
Shelf(int);
|
|
int num_items;;
|
|
std::vector<Item*> item;
|
|
void reload(void);
|
|
void dispense(int);
|
|
private:
|
|
TaskHandle_t dispenseTaskHandle;
|
|
void dispenseTask(void*);
|
|
static void cTaskWrapper(void*);
|
|
int num;
|
|
};
|
|
|
|
#endif /* _SHELF_H */
|
|
|