Page MenuHomePhabricator (Chris)

ChestEntity.h
No OneTemporary

Authored By
Unknown
Size
784 B
Referenced Files
None
Subscribers
None

ChestEntity.h

#ifndef CHESTENTITY_H
#define CHESTENTITY_H
#include "sfml_game/CollidingSpriteEntity.h"
#include "Constants.h"
class ChestEntity : public CollidingSpriteEntity
{
public:
ChestEntity(float x, float y, int chestType, bool isOpen);
virtual void animate(float delay);
virtual void render(sf::RenderTarget* app);
virtual void calculateBB();
void open();
void makeAppear();
bool getOpened();
int getChestType();
protected:
virtual void readCollidingEntity(CollidingSpriteEntity* entity);
private:
bool isOpen;
int chestType;
float appearTimer;
float timer;
void fallRock();
void initFallingGrid();
void generateStar(sf::Color starColor);
bool fallingGrid[MAP_WIDTH][MAP_HEIGHT];
};
#endif // CHESTENTITY_H

File Metadata

Mime Type
text/x-c++
Expires
Sun, Nov 15, 3:14 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
129909
Default Alt Text
ChestEntity.h (784 B)

Event Timeline