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();
a359d6
Group createEdgesGroupEx(double x1, double y1, double x2, double y2, double borderWidth, int massLevel);
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
3f9996
double groupGetMinDepth(Group group);
3f9996
double groupGetMaxDepth(Group group);
3f9996
3f9996
void groupDestroyEach(Group group);
8535a3
void groupDestroyTimerEach(Group group, double lifetime);
8535a3
f80a0a
Sprite groupSpriteByPoint(Group group, double x, double y, int onlyVisible);
f80a0a
6eadb0
void groupDraw(Group group);
6eadb0
f80a0a
int groupOverlap(Group group, Sprite sprite);
f80a0a
int groupCollide(Group group, Sprite sprite);
f80a0a
int groupOverlapGroup(Group a, Group b);
f80a0a
int groupCollideGroup(Group a, Group b);
f80a0a
int groupOverlapBetween(Group group);
f80a0a
int groupCollideBetween(Group group);
f80a0a
void groupResetTouch(Group group);
f80a0a
a359d6
void groupSetBouncinessEach(Group group, double bounciness);
a359d6
void groupSetBouncinessThresholdEach(Group group, double bouncinessThreshold);
a359d6
void groupSetFrictionEach(Group group, double friction);
a359d6
void groupSetAirFrictionEach(Group group, double friction);
a359d6
void groupSetMassLevelEach(Group group, int massLevel);
44355f
3f9996
void groupSetVisibleEach(Group group, int visible);
6eadb0
void groupSetFrozenEach(Group group, int frozen);
6eadb0
void groupSetDebugEach(Group group, int debug);
3f9996
void groupSetWidthEach(Group group, double width);
3f9996
void groupSetHeightEach(Group group, double height);
3f9996
void groupSetDepthEach(Group group, double depth);
f80a0a
void groupSetXEach(Group group, double x);
f80a0a
void groupSetYEach(Group group, double y);
f80a0a
void groupSetXYEach(Group group, double x, double y);
8535a3
void groupSetVelocityXEach(Group group, double x);
8535a3
void groupSetVelocityYEach(Group group, double y);
3f9996
void groupSetVelocityEach(Group group, double x, double y);
f80a0a
void groupSetAccelerationXEach(Group group, double x);
f80a0a
void groupSetAccelerationYEach(Group group, double y);
f80a0a
void groupSetAccelerationEach(Group group, double x, double y);
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);
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
f80a0a
void groupSetColliderSensitiveDistance(Group group, double distance);
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