GTGE API

Uses of Class
com.golden.gamedev.object.Sprite

Packages that use Sprite
com.golden.gamedev The core package of Golden T Game Engine (GTGE) Frame Work
(this package is where you should start first)
com.golden.gamedev.object This package is the heart of the game, containing objects visible in the game, such as sprite class, background class, etc. 
com.golden.gamedev.object.collision Collision implementation. 
com.golden.gamedev.object.sprite Sprite implementation. 
 

Uses of Sprite in com.golden.gamedev
 

Methods in com.golden.gamedev with parameters of type Sprite
 boolean GameObject.checkPosMouse(Sprite sprite, boolean pixelCheck)
          Returns whether the mouse pointer is inside specified sprite boundary.
 boolean Game.checkPosMouse(Sprite sprite, boolean pixelCheck)
          Returns whether the mouse pointer is inside specified sprite boundary.
 

Uses of Sprite in com.golden.gamedev.object
 

Subclasses of Sprite in com.golden.gamedev.object
 class AnimatedSprite
          AnimatedSprite class is sprite that use several images and can be animated.
 

Methods in com.golden.gamedev.object that return Sprite
 Sprite SpriteGroup.getActiveSprite()
          Returns the first active sprite found in this group, or null if there is no active sprite.
 Sprite[] AdvanceSpriteGroup.getGroupSprites()
          Returns all sprites (active, inactive, and also null sprite) in this group.
 Sprite SpriteGroup.getInactiveSprite()
          Returns the first inactive sprite found in this group (the returned sprite is automatically set to active), or null if there is no inactive sprite, please see setImmutable(boolean) for tag method of this method.
 Sprite[] AdvanceSpriteGroup.getSprites()
          Returns all on-screen sprites (active, inactive, and also null sprite) in this group.
 Sprite[] SpriteGroup.getSprites()
          Returns all sprites (active, inactive, and also null sprite) in this group.
 Sprite SpriteGroup.remove(int index)
          Removes sprite at specified index from this group.
 

Methods in com.golden.gamedev.object with parameters of type Sprite
 void SpriteGroup.add(int index, Sprite member)
          Inserts sprite at specified index, range from [0 - size].
 void PlayField.add(Sprite extra)
          Inserts a sprite (extra sprite) directly into playfield, for example animation, explosion, etc.
 void SpriteGroup.add(Sprite member)
          Inserts sprite at the bottom (last index) of this group.
 double Sprite.getDistance(Sprite other)
          Returns the distance of this sprite from the specified sprite.
 boolean SpriteGroup.remove(Sprite s)
          Removes specified sprite from this group.
 void Background.setToCenter(Sprite centered)
          Sets specified sprite as the center of the background's viewport.
 

Uses of Sprite in com.golden.gamedev.object.collision
 

Fields in com.golden.gamedev.object.collision declared as Sprite
protected  Sprite CollisionGroup.sprite1
          The sprite from group 1 in current collision.
protected  Sprite CollisionGroup.sprite2
          The sprite from group 2 in current collision.
 

Methods in com.golden.gamedev.object.collision that return Sprite
protected  Sprite AdvanceCollisionGroup.getSourceSprite()
          Returns the source sprite to be checked at the moment.
 Sprite CollisionGroup.getSprite1()
          Returns the sprite of current collision from group 1.
 Sprite CollisionGroup.getSprite2()
          Returns the sprite of current collision from group 2.
 

Methods in com.golden.gamedev.object.collision with parameters of type Sprite
abstract  void CollisionBounds.collided(Sprite sprite)
          Sprite sprite hit collision boundary, perform collided implementation.
abstract  void BasicCollisionGroup.collided(Sprite s1, Sprite s2)
          Notified when sprite1 from group 1 collided with sprite2 from group 2.
 CollisionShape BasicCollisionGroup.getCollisionShape1(Sprite s1)
          Returns collision shape (bounding box) of specified sprite from group 1.
 CollisionShape CollisionBounds.getCollisionShape1(Sprite s1)
          Sets specified Sprite collision rectangle (sprite bounding box) into rect.
 CollisionShape BasicCollisionGroup.getCollisionShape2(Sprite s2)
          Returns collision shape (bounding box) of specified sprite from group 2.
 boolean BasicCollisionGroup.isCollide(Sprite s1, Sprite s2, CollisionShape shape1, CollisionShape shape2)
          Performs collision check between Sprite s1 and Sprite s2, and returns true if the sprites (shape1, shape2) is collided.
 boolean PreciseCollisionGroup.isCollide(Sprite s1, Sprite s2, CollisionShape shape1, CollisionShape shape2)
          Performs collision check between Sprite s1 and Sprite s2, and returns true if the sprites (shape1, shape2) is collided.
 boolean CollisionGroup.isCollide(Sprite s1, Sprite s2, CollisionShape shape1, CollisionShape shape2)
          Performs collision check between Sprite s1 and Sprite s2, and returns true if the sprites (shape1, shape2) is collided.
protected  boolean AdvanceCollisionGroup.sort(Sprite source)
          Determines all sprites that collided with Sprite source should be sorted or not before checking the actual collision.
 

Uses of Sprite in com.golden.gamedev.object.sprite
 

Subclasses of Sprite in com.golden.gamedev.object.sprite
 class AdvanceSprite
          AdvanceSprite class is animated sprite that has status and direction attributes, that way the animation is fully controlled by its status and direction.
 class PatternSprite
          Sprite that its images is taken from another sprite (the pattern).
 class VolatileSprite
          One time animation sprite, the sprite is animated once, and then disappeared, suitable for explosion type sprite.
 

Methods in com.golden.gamedev.object.sprite that return Sprite
 Sprite PatternSprite.getPattern()
          Returns the pattern sprite associates with this sprite.
 

Methods in com.golden.gamedev.object.sprite with parameters of type Sprite
 void PatternSprite.setPattern(Sprite pattern)
          Sets the pattern of this sprite.
 

Constructors in com.golden.gamedev.object.sprite with parameters of type Sprite
PatternSprite(Sprite pattern)
          Creates new PatternSprite with specified pattern.
PatternSprite(Sprite pattern, double x, double y)
          Creates new PatternSprite with specified pattern and coordinate.
 


GTGE API

Copyright © 2003-2005 Golden T Studios. All rights reserved. Use is subject to license terms.
GoldenStudios.or.id