Class FriendlyComponent

java.lang.Object
com.deco2800.game.components.Component
com.deco2800.game.components.friendly.FriendlyComponent

public class FriendlyComponent extends Component
Component to indicate that this Entity is friendly - used by the gate to distinguish friendly entities.
  • Field Details

    • globalFriendlyId

      public static int globalFriendlyId
    • friendlyId

      public int friendlyId
  • Constructor Details

    • FriendlyComponent

      public FriendlyComponent()
  • Method Details

    • getId

      public int getId()
      Returns unique identifier ID for this friendly unit
      Returns:
      id number identifying a friendly unit