mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-12-01 15:35:47 +00:00
8472718fb7
This untangles some of the gigantic kitchen sink headers in an attempt to split things into smaller files. Also don't include gl.h, glext.h, windows.h, and other such nonsense *everywhere*. Lots of cleanups on the way too. More dead/unused code removal. Remove incrFlag(), decrFlag() Lua functions.
25 lines
432 B
C++
25 lines
432 B
C++
#ifndef INGREDIENT_H
|
|
#define INGREDIENT_H
|
|
|
|
#include "Entity.h"
|
|
|
|
class Ingredient : public Entity
|
|
{
|
|
public:
|
|
Ingredient(const Vector &pos, IngredientData *data, int amount=1);
|
|
void destroy();
|
|
IngredientData *getIngredientData();
|
|
|
|
void eat(Entity *e);
|
|
bool hasIET(IngredientEffectType iet);
|
|
protected:
|
|
bool isRotKind();
|
|
IngredientData *data;
|
|
bool used, gone;
|
|
float lifeSpan;
|
|
int amount;
|
|
void onUpdate(float dt);
|
|
};
|
|
|
|
|
|
#endif
|