Page MenuHomePhabricator (Chris)

bubble.h
No OneTemporary

Authored By
Unknown
Size
605 B
Referenced Files
None
Subscribers
None

bubble.h

#ifndef BUBBLE_H
#define BUBBLE_H
#include <SFML/Graphics.hpp>
enum BubbleState {DICE=0, MOVE=1};
class Bubble: public sf::Drawable, public sf::Transformable
{
public:
Bubble();
public:
sf::Texture textureDice;
sf::Texture textureFootSteps;
sf::Sprite spriteDice;
sf::Sprite spriteFootSteps;
std::array<sf::Sprite,2> spritesBubbles;
BubbleState state;
virtual void draw(sf::RenderTarget& target, sf::RenderStates states) const;
void update(sf::Time deltaTime);
float timeCounter;
float posY;
void setPosition(float x, float y);
};
#endif // BUBBLE_H

File Metadata

Mime Type
text/x-c++
Expires
Sat, Nov 14, 9:23 PM (1 d, 5 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
111139
Default Alt Text
bubble.h (605 B)

Event Timeline