public class Artefact extends BaseEntity
BaseEntity.DepthOrder
tag, tagNo
Constructor and Description |
---|
Artefact()
Default constructor
|
Artefact(java.lang.String entityName)
Constructor will give the entity a unique ID.
|
Artefact(java.lang.String entityName,
Vector2D entityPos,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
Domain |
getExtent()
Get the rectangle that encompasses this artefact in world coordinates.
|
boolean |
isInDomain(Domain view)
Determine whether this artefact is inside or part inside the domain.
|
addFSM, born, colRadius, colRadius, compareTo, die, draw, draw, FSM, hasFSM, ID, isEitherSide, isEitherSide, isOver, isOverLapAllowed, isVisible, moveBy, moveBy, moveTo, moveTo, name, name, overLapAllowed, pos, removeFSM, renderer, renderer, toString, update, updateFSM, visible, Z, Z
public Artefact()
public Artefact(java.lang.String entityName)
entityName
- the name of this entity - default name is used if none provided.public Artefact(java.lang.String entityName, Vector2D entityPos, double width, double height)
entityName
- entityPos
- width
- height
- public Domain getExtent()
public boolean isInDomain(Domain view)
isInDomain
in class BaseEntity
view
- the world domainProcessing library AI_for_2D_Games by Peter Lager. (C) 2013