28 lines
451 B
C++
28 lines
451 B
C++
#ifndef FRAME
|
|
#define FRAME
|
|
|
|
#include <vector>
|
|
|
|
using namespace std;
|
|
|
|
#include <SDL3/SDL.h>
|
|
|
|
#include "Item.h"
|
|
|
|
class Frame : public Item {
|
|
protected:
|
|
vector<Item *> items;
|
|
public:
|
|
Frame(SDL_Rect pos);
|
|
~Frame();
|
|
SDL_Surface *getSurface();
|
|
void draw();
|
|
void addItem(Item *item);
|
|
Item *getItem(int i);
|
|
bool onMousePress(int x, int y);
|
|
void onMouseRelease(int x, int y);
|
|
void onMouseMove(int x, int y);
|
|
};
|
|
|
|
#endif
|