|
|
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();
|
|
|
8535a3 |
Group createEdgesGroupEx(double x1, double y1, double x2, double y2, double borderWidth);
|
|
|
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 |
|
|
|
8535a3 |
int groupOverlap(Group group, Sprite sprite);
|
|
|
8535a3 |
int groupCollide(Group group, Sprite sprite, double bounciness);
|
|
|
8535a3 |
int groupBounceOff(Group group, Sprite sprite, double bounciness);
|
|
|
8535a3 |
int groupPush(Group group, Sprite sprite, double bounciness);
|
|
|
8535a3 |
int groupCollideEx(Group group, Sprite sprite, int keepVelocityGroup, int keepVelocitySprite, double bounciness);
|
|
|
3f9996 |
|
|
|
8535a3 |
int groupOverlapGroup(Group a, Group b);
|
|
|
8535a3 |
int groupCollideGroup(Group a, Group b, double bounciness);
|
|
|
8535a3 |
int groupBounceOffGroup(Group group, Group other, double bounciness);
|
|
|
8535a3 |
int groupPushGroup(Group group, Group other, double bounciness);
|
|
|
8535a3 |
int groupCollideGroupEx(Group a, Group b, int keepVelocityA, int keepVelocityB, double bounciness);
|
|
|
3f9996 |
|
|
|
f8c1ea |
int groupOverlapBetween(Group group);
|
|
|
f8c1ea |
int groupCollideBetween(Group group, double bounciness);
|
|
|
f8c1ea |
int groupCollideBetweenEx(Group group, int keepVelocity, double bounciness);
|
|
|
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 |
|
|
|
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 |
|
|
|
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
|