Page MenuHomePhabricator (Chris)

bubble.h
No OneTemporary

Authored By
Unknown
Size
628 B
Referenced Files
None
Subscribers
None

bubble.h

#ifndef BUBBLE_H
#define BUBBLE_H
#include <SFML/Graphics.hpp>
#include "filetools.h"
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, 6:45 PM (17 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
122444
Default Alt Text
bubble.h (628 B)

Event Timeline