|
GTGE API | ||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use CollisionShape | |
---|---|
com.golden.gamedev.object.collision | Collision implementation. |
Uses of CollisionShape in com.golden.gamedev.object.collision |
---|
Classes in com.golden.gamedev.object.collision that implement CollisionShape | |
---|---|
class |
CollisionRect
Optimized java.awt.Rectangle with double precision. |
Methods in com.golden.gamedev.object.collision that return CollisionShape | |
---|---|
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. |
Methods in com.golden.gamedev.object.collision with parameters of type CollisionShape | |
---|---|
boolean |
CollisionRect.intersects(CollisionShape shape)
|
boolean |
CollisionShape.intersects(CollisionShape shape)
Returns whether this collision shape intersects with other collision shape area. |
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. |
|
GTGE API | ||||||||
PREV NEXT | FRAMES NO FRAMES |