From Game Editor
Revision as of 00:23, 4 May 2011 by Skydereign (Talk | contribs)
Game Editor uses functions from the standard C library and its own large collection of useful functions.
List Of Functions
Actions
- ChangeAnimation (char *actorName, char *animationName, int state)
- ChangeAnimationDirection (char *actorName, int state)
- ChangeCursor (char *actorName, char *imgName, int nFramesH, int nFramesV, int hotSpotX, int hotSpotY)
- ChangeParent (char *actorName, char *parentName)
- ChangePath (char *actorName, char *pathName, int axis)
- ChangeTransparency (char *actorName, double transp)
- ChangeZDepth (char *actorName, double zdepth)
- CollisionState (char *actorName, int state)
- CreateActor (char *creatorName, char *animationName, char *parentName, char *pathName, int xpos, int ypos, int absolutePosition)
- CreateTimer (char *actorName, char *timerName, int milliseconds)
- DestroyActor (char *actorName)
- DestroyTimer (char *timerName)
- EventDisable (char *actorName, unsigned long event)
- EventEnable (char *actorName, unsigned long event)
- FollowMouse (char *actorName, int axis)
- MoveTo (char *actorName, double x, double y, double velocity, char *relativeActor, char *avoidActor)
- PhysicalResponse (int moveType, int massType, double massEventActor, double massCollideActor, double eventVelocityMultiplier, double collideVelocityMultiplier)
- PlayMusic2 (char *soundPath, double volume, int loop, int priority)
- PlaySound2 (char *soundPath, double volume, int loop, double pan)
- ToAnteriorPosition (char *actorName)
- VisibilityState (char *actorName, int state)
Drawing Functions
- draw_from (const char *actorname, int x, int y, double scale)
- setpen (int r, int g, int b, double transp, int pensize)
- moveto (int x, int y)
- lineto (int x, int y)
- putpixel (int x, int y)
- erase (int r, int g, int b, double transp)
- screen_to_actor (int *x, int *y)
- actor_to_screen (int *x, int *y)
- savecanvas (void)
- restorecanvas (void)
Sound Functions
Save Functions
Game Control
- LoadGame (char *gamePath)
- ExitGame (void)
- SuspendGame (void)
- PauseGameOff (void)
- PauseGameOn (void)
Keyboard Functions
- getKeyText (int key)
- getLastKey (void)
- remapKey (int fromKey, int toKey)
- GetKeyState (void)
Helper Functions
- ActorCount (char* actorName)
- CollisionFree (char *actorName, int x, int y)
- SendActivationEvent (char *cloneName)
- radtodeg (double a)
- degtorad (double a)
- direction (double x1, double y1, double x2, double y2)
- distance (double x1, double y1, double x2, double y2)
- getAllActorsInCollision (char *cloneName, int *nActors)
- getAnimIndex (char *animName)
- getAnimName (int animIndex)
- getactor (int x, int y)
- getclone (char *cloneName)
- getTime (void)
- openUrl (char *url)
- round (double arg)
- max (double number1, double number 2)
- min (double number1, double number2)
- rand (double val)
- vectoradd (double *angle1, double *magnitude1, double angle2, double magnitude2)
Device Indentification functions
- getHardwareID (void)
- getOwner (void)
Standard C Functions
- abs (cplusplus.com)
- acos (cplusplus.com)
- asin (cplusplus.com)
- atan (cplusplus.com)
- atan2 (cplusplus.com)
- atof (cplusplus.com)
- atoi (cplusplus.com)
- atol (cplusplus.com)
- calloc (cplusplus.com)
- ceil (cplusplus.com)
- cos (cplusplus.com)
- cosh (cplusplus.com)
- fclose (cplusplus.com)
- feof (cplusplus.com)
- fgetc (cplusplus.com)
- fgets (cplusplus.com)
- floor (cplusplus.com)
- fmod (cplusplus.com)
- fopen (cplusplus.com)
- fprintf (cplusplus.com)
- fputc (cplusplus.com)
- fputs (cplusplus.com)
- fread (cplusplus.com)
- free (cplusplus.com)
- fscanf (cplusplus.com)
- fseek (cplusplus.com)
- ftell (cplusplus.com)
- fwrite (cplusplus.com)
- log (cplusplus.com)
- log10 (cplusplus.com)
- malloc (cplusplus.com)
- memcmp (cplusplus.com)
- memcpy (cplusplus.com)
- memmove (cplusplus.com)
- memset (cplusplus.com)
- pow (cplusplus.com)
- realloc (cplusplus.com)
- sign (cplusplus.com)
- sin (cplusplus.com)
- sinh (cplusplus.com)
- sprintf (cplusplus.com)
- sqrt (cplusplus.com)
- sscanf (cplusplus.com)
- strcat (cplusplus.com)
- strchr (cplusplus.com)
- strcmp (cplusplus.com)
- strcpy (cplusplus.com)
- strlen (cplusplus.com)
- strncat (cplusplus.com)
- strncmp (cplusplus.com)
- strncpy (cplusplus.com)
- tan (cplusplus.com)
- tanh (cplusplus.com)