Class SignpostFactory

java.lang.Object
com.csse3200.game.entities.factories.SignpostFactory

public class SignpostFactory extends Object
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 Type
    Method
    Description
    static Entity
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createSignpost

      public static Entity createSignpost(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
      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