Class SignpostFactory
java.lang.Object
com.csse3200.game.entities.factories.SignpostFactory
Signpost Factory for creating signpost entities
Image texture depends on direction for arrow to face (left, right, up or down). If anything
else specified the image will be a standard signpost with no arrow
-
Method Summary
Modifier and TypeMethodDescriptionstatic EntitycreateSignpost(String direction) Creates a signpost entity with the arrow in the specified direction - The texture is set to layer 0 so that it is always behind all other entities - There is no physics or collider component so nothing can interact with the signpost, and no collisions occur with other entities
-
Method Details
-
createSignpost
Creates a signpost entity with the arrow in the specified direction - The texture is set to layer 0 so that it is always behind all other entities - There is no physics or collider component so nothing can interact with the signpost, and no collisions occur with other entities- Parameters:
direction- direction for arrow on sign to be (left, right, up, down or standard with no arrow if anything else specified)- Returns:
- fully configured signpost entity
-