Blame src/group.h

3f9996
#ifndef HELI_GROUP_H
3f9996
#define HELI_GROUP_H
3f9996
3f9996
3f9996
#include "sprite.h"
3f9996
3f9996
3f9996
typedef struct _Group *Group;
3f9996
3f9996
3f9996
Group createGroup();
8535a3
Group createEdgesGroup();
44355f
Group createEdgesGroupEx(double x1, double y1, double x2, double y2, double borderWidth, int weightLevel);
8535a3
8535a3
void groupDestroy(Group group);
8535a3
void groupDestroyEx(Group group, int destroySprites);
3f9996
3f9996
void groupAdd(Group group, Sprite sprite);
3f9996
void groupRemove(Group group, Sprite sprite);
3f9996
void groupClear(Group group);
8535a3
void groupClearEx(Group group, int destroySprites);
3f9996
int groupContains(Group group, Sprite sprite);
3f9996
int groupGetCount(Group group);
3f9996
Sprite groupGet(Group group, int i);
3f9996
44355f
Sprite groupSpriteByPoint(Group group, double x, double y, int onlyVisible);
3f9996
44355f
int groupOverlap(Group group, Sprite sprite, double distance);
44355f
int groupCollide(Group group, Sprite sprite, double distance);
44355f
int groupOverlapGroup(Group a, Group b, double distance);
44355f
int groupCollideGroup(Group a, Group b, double distance);
44355f
int groupOverlapBetween(Group group, double distance);
44355f
int groupCollideBetween(Group group, double distance);
f8c1ea
3f9996
double groupGetMinDepth(Group group);
3f9996
double groupGetMaxDepth(Group group);
3f9996
3f9996
void groupDestroyEach(Group group);
8535a3
void groupDestroyTimerEach(Group group, double lifetime);
8535a3
44355f
void groupSetBounciness(Group group, double bounciness);
44355f
void groupSetBouncinessThreshold(Group group, double bouncinessThreshold);
44355f
void groupSetSliding(Group group, double sliding);
44355f
void groupSetSlidingThreshold(Group group, double slidingThreshold);
44355f
void groupSetWeightLevel(Group group, int weightLevel);
44355f
3f9996
void groupSetVisibleEach(Group group, int visible);
3f9996
void groupSetWidthEach(Group group, double width);
3f9996
void groupSetHeightEach(Group group, double height);
3f9996
void groupSetDepthEach(Group group, double depth);
8535a3
void groupSetVelocityXEach(Group group, double x);
8535a3
void groupSetVelocityYEach(Group group, double y);
3f9996
void groupSetVelocityEach(Group group, double x, double y);
3f9996
void groupSetLifetimeEach(Group group, double lifetime);
3f9996
void groupSetRotateToDirectionEach(Group group, int rotateToDirection);
3f9996
void groupSetRotationEach(Group group, double rotation);
3f9996
void groupSetRotationSpeedEach(Group group, double rotationSpeed);
3f9996
void groupSetScaleEach(Group group, double scale);
3f9996
void groupSetMirrorXEach(Group group, int mirrorX);
3f9996
void groupSetMirrorYEach(Group group, int mirrorY);
8935bc
void groupSetTagEach(Group group, int tag);
3f9996
void groupPointToEach(Group group, double x, double y);
3f9996
void groupSetSpeedAndDirectionEach(Group group, double speed, double angle);
dba3fc
void groupSetAnimationEach(Group group, Animation animation);
8935bc
void groupSetNoAnimationEach(Group group);
d4e89f
void groupSetShapeColorEach(Group group, unsigned int colorCode);
d4e89f
void groupSetTintColorEach(Group group, unsigned int colorCode);
f8c1ea
44355f
void groupSetUserTagEach(Group group, int tag);
44355f
void groupSetUserTextEach(Group group, const char *text);
44355f
void groupSetUserDataEach(Group group, void *data);
44355f
void groupSetDestroyEach(Group group, SpriteCallback destroy);
44355f
f8c1ea
void groupSetColliderEach(Group group, Collider type, double xOffset, double yOffset, double rotationOffset);
f8c1ea
void groupSetColliderCircleEach(Group group, double xOffset, double yOffset, double radius);
f8c1ea
void groupSetColliderRectangleEach(
f8c1ea
	Group group, double xOffset, double yOffset, double rotationOffset,
f8c1ea
	double width, double height, double cornersRadius );
f8c1ea
void groupSetColliderEachEx(
f8c1ea
	Group group, Collider type,
f8c1ea
	double xOffset, double yOffset, double rotationOffset,
f8c1ea
	double width, double height, double radius);
3f9996
3f9996
3f9996
#endif