14#include "EventKeyboard.h"
15#include "EventMouse.h"
19#include "NetworkNode.h"
22#include "Precipitation.h"
24#include "ViewObject.h"
106std::string
toString(MessageType message);
114std::string
match(std::string str, std::string find);
128 Vector position,
float position_spread,
129 Vector direction,
float direction_spread,
130 float size,
float size_spread,
131 float speed,
float speed_spread,
132 int age,
int age_spread,
133 unsigned char opacity,
char opacity_spread,
134 unsigned char r,
unsigned char g,
unsigned char b,
135 unsigned char color_spread,
145 float scale=1.0,
Color color=CUSTOM);
181 float speed,
float rotate);
Key
Keys Dragonfly recognizes.
Definition: EventKeyboard.h:25
An animation for a sprite.
Definition: Animation.h:15
Vector getNormal(const Object *p_o1, const Object *p_o2)
Return normal between two colliding Objects.
bool valueInRange(float value, float min, float max)
Return true if value is between min and max (inclusive).
bool circleIntersectsBox(Circle circle, Box b)
Return true if Circle intersects or contains Box.
int splash()
Launch splash screen. Return 0 if ok, else -1.
std::string match(std::string str, std::string find)
Match key:value pair in string in str, returning value.
int addParticles(int count, int count_spread, Vector position, float position_spread, Vector direction, float direction_spread, float size, float size_spread, float speed, float speed_spread, int age, int age_spread, unsigned char opacity, char opacity_spread, unsigned char r, unsigned char g, unsigned char b, unsigned char color_spread, ParticleClass particle_class=PARTICLE)
Add particles.
bool boxContainsPosition(Box b, Vector p)
Return true of position is within Box.
sf::Color colorToSFML(Color color)
Return SFML color based on DF color.
void colorToRGB(Color color, unsigned char &r, unsigned char &g, unsigned char &b)
Set RGB color based on DF color.
Color
Colors Dragonfly recognizes.
Definition: Color.h:11
std::string toString(int i)
Convert integer to string, returning string.
std::string maskToString(unsigned int mask)
Return bitmask as string.
Vector viewToWorld(Vector view_pos)
Convert view position to world position.
bool boxContainsBox(Box b1, Box b2)
Return true if Box 1 completely contains Box 2.
bool lineIntersectsBox(Line line, Box b)
Return true if Line segment intersects Box.
char * getTimeString()
Returns pretty-formatted time as char * string.
ParticleClass
Particle classes.
Definition: Particle.h:23
ParticleType
Particle types.
Definition: Particle.h:14
bool lineIntersectsLine(Line line1, Line line2)
Return true if Line segments intersect.
Direction
Directions.
Definition: Particle.h:30
float distance(Vector p1, Vector p2)
Return distance between any two positions.
int explode(const Sprite *p_sprite, int index, Vector position, int age, float speed, float rotate)
"Explode" a sprite frame into small, Particles.
Solidness
Types of solidness of Object.
Definition: Object.h:26
Box getWorldBox(const Object *p_o)
Convert relative bounding Box for Object to absolute world Box.
bool boxIntersectsBox(Box box1, Box box2)
Return true if Boxes intersect.
Vector worldToView(Vector world_pos)
Convert world position to view position.
ViewObjectLocation
General location on screen.
Definition: ViewObject.h:26
PrecipitationType
Precipitation types.
Definition: Precipitation.h:14