|
|
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 |
|
|
|
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);
|
|
|
8935bc |
void groupSetAnimationEach(Group group, Animation animation);
|
|
|
8935bc |
void groupSetAnimationPathEach(Group group, const char *path);
|
|
|
8935bc |
void groupSetNoAnimationEach(Group group);
|
|
|
8535a3 |
void groupSetShapeColorEach(Group group, const char *color);
|
|
|
8535a3 |
void groupSetTintColorEach(Group group, const char *color);
|
|
|
3f9996 |
void groupSetColliderEach(Group group, Collider type, double xOffset, double yOffset);
|
|
|
3f9996 |
void groupSetColliderEachEx(Group group, Collider type, double xOffset, double yOffset,
|
|
|
3f9996 |
double widthOrRadius, double height, double rotationOffset);
|
|
|
3f9996 |
|
|
|
3f9996 |
|
|
|
3f9996 |
#endif
|