public class LScreenLogic extends Object
| Constructor and Description |
|---|
LScreenLogic() |
| Modifier and Type | Method and Description |
|---|---|
void |
animate(Collection<LObject> objects,
double secondsSinceLastUpdate) |
void |
animate(LObject object,
double secondsSinceLastUpdate) |
LPolygon |
createCollisionPolygon(LObject object) |
LObject |
createObject(LVector size,
LVector pos) |
List<LObject> |
getAllCollidingObjects(LObject objectA,
List<LObject> listOfObjects) |
List<LObject> |
getAllCollidingObjects(LObject objectA,
LObject... listOfObjects) |
List<LObject> |
getAllGameObjectsExcludeEnemies(LScreenModel model) |
List<LObject> |
getAllObjects(LScreenModel model,
boolean includeUIObjects) |
protected double |
getNeededRotationClosedToCurrentRotationAndOutOfRange(LObject object,
LVector dest) |
boolean |
isColliding(LObject objectA,
LObject... listOfObjects) |
LObject |
setAnimation(LObject result,
List<LAnimationFrame> animationFrames) |
LObject |
setText(LObject object,
String text,
LFont textFont,
double textSize,
LColor textColor) |
LObject |
setTextShadow(LObject object,
LVector shadowOffset,
LColor shadowColor) |
void |
updateGameObjectToFollowPath(LObject object,
double distanceToConsiderPathPointReached,
double maximumSteerRotation) |
public List<LObject> getAllObjects(LScreenModel model, boolean includeUIObjects)
public List<LObject> getAllGameObjectsExcludeEnemies(LScreenModel model)
public List<LObject> getAllCollidingObjects(LObject objectA, LObject... listOfObjects)
public List<LObject> getAllCollidingObjects(LObject objectA, List<LObject> listOfObjects)
protected double getNeededRotationClosedToCurrentRotationAndOutOfRange(LObject object, LVector dest)
object - object for which to calculate the needed rotationdest - destinationpublic void updateGameObjectToFollowPath(LObject object, double distanceToConsiderPathPointReached, double maximumSteerRotation)
public void animate(Collection<LObject> objects, double secondsSinceLastUpdate)
public void animate(LObject object, double secondsSinceLastUpdate)
public LObject setText(LObject object, String text, LFont textFont, double textSize, LColor textColor)
public LObject setTextShadow(LObject object, LVector shadowOffset, LColor shadowColor)
public LObject setAnimation(LObject result, List<LAnimationFrame> animationFrames)
Copyright © 2019 Philip Heyse. All rights reserved.