Blob Blame Raw
#ifndef HELI_GROUP_H
#define HELI_GROUP_H


#include "sprite.h"


typedef struct _Group *Group;


Group createGroup();
void gorupDestroy(Group group);

void groupAdd(Group group, Sprite sprite);
void groupRemove(Group group, Sprite sprite);
void groupClear(Group group);
int groupContains(Group group, Sprite sprite);
int groupGetCount(Group group);
Sprite groupGet(Group group, int i);

int groupGetColliderId(Group group);

int groupIsTouching(Group group, int colliderId);

int groupBounce(Group group, int colliderId);
int groupBounceOff(Group group, int colliderId);
int groupCollide(Group group, int colliderId);
int groupDisplace(Group group, int colliderId);
int groupOverlap(Group group, int colliderId);

double groupGetMinDepth(Group group);
double groupGetMaxDepth(Group group);

void groupDestroyEach(Group group);
void groupSetVisibleEach(Group group, int visible);
void groupSetWidthEach(Group group, double width);
void groupSetHeightEach(Group group, double height);
void groupSetDepthEach(Group group, double depth);
void groupSetVelocityXEach(Group group, double velocityX);
void groupSetVelocityYEach(Group group, double velocityY);
void groupSetVelocityEach(Group group, double x, double y);
void groupSetLifetimeEach(Group group, double lifetime);
void groupSetRotateToDirectionEach(Group group, int rotateToDirection);
void groupSetRotationEach(Group group, double rotation);
void groupSetRotationSpeedEach(Group group, double rotationSpeed);
void groupSetScaleEach(Group group, double scale);
void groupSetMirrorXEach(Group group, int mirrorX);
void groupSetMirrorYEach(Group group, int mirrorY);
void groupPointToEach(Group group, double x, double y);
void groupSetSpeedAndDirectionEach(Group group, double speed, double angle);
void groupSetAnimationEach(Group group, char *label);
void groupSetColorEach(Group group, char *color);
void groupSetColliderEach(Group group, Collider type, double xOffset, double yOffset);
void groupSetColliderEachEx(Group group, Collider type, double xOffset, double yOffset,
							double widthOrRadius, double height, double rotationOffset);


#endif