1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2024-12-01 15:35:47 +00:00
Aquaria/Aquaria/Ingredient.h
fgenesis 8472718fb7 Major include refactor; changes to pretty much everything
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.
2016-07-09 04:18:40 +02:00

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