Package gameobjects
Class AnimatedGameobject
java.lang.Object
gameobjects.GameObject
gameobjects.AnimatedGameobject
-
Field Summary
-
Constructor Summary
ConstructorDescriptionAnimatedGameobject
(String id, Playground pg, double x, double y, double vx, double vy, double scale, Animation anim, double t0, String abspielmodus) -
Method Summary
Modifier and TypeMethodDescriptiongenerates and sets collider(s) for this GameObject.Methods inherited from class gameobjects.GameObject
addArtist, addCollider, addController, collisionDetection, draw, getGameTime, getId, getObjectController, getObjectFlag, getOrCreateObjectFlag, getPlayground, getVX, getVY, getX, getY, isActive, setActive, setColliders, setComponentProperty, setObjectController, setObjectFlag, setPlayground, setVX, setVY, setX, setY, updateObject
-
Constructor Details
-
AnimatedGameobject
public AnimatedGameobject(String id, Playground pg, double x, double y, double vx, double vy, double scale, Animation anim, double t0, String abspielmodus)
-
-
Method Details
-
generateColliders
Description copied from class:GameObject
generates and sets collider(s) for this GameObject. This implementation does nothing. Intended to be overridden by subclasses.- Overrides:
generateColliders
in classGameObject
- Returns:
- instance of this GameObject (this).
-