14#include "EventKeyboard.h"
18#include "Precipitation.h"
101std::string
match(std::string str, std::string find);
115 Vector position,
float position_spread,
116 Vector direction,
float direction_spread,
117 float size,
float size_spread,
118 float speed,
float speed_spread,
119 int age,
int age_spread,
120 unsigned char opacity,
char opacity_spread,
121 unsigned char r,
unsigned char g,
unsigned char b,
122 unsigned char color_spread,
132 float scale=1.0,
Color color=CUSTOM);
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.
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:26
ParticleType
Particle types.
Definition: Particle.h:17
bool lineIntersectsLine(Line line1, Line line2)
Return true if Line segments intersect.
Direction
Directions.
Definition: Particle.h:33
float distance(Vector p1, Vector p2)
Return distance between any two positions.
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.
PrecipitationType
Precipitation types.
Definition: Precipitation.h:14