Class parts

java.lang.Object
name.moore.kevin.ze.components.parts
All Implemented Interfaces:
com.simsilica.es.EntityComponent

public class parts extends Object implements com.simsilica.es.EntityComponent
A component that can Lists the equipment installed on a ship.

This is used to store the installed equipment in a ship or the specs that make up a ship.

Author:
Kevin Moore <dev@kevin.moore.name>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private List<com.simsilica.es.EntityId>
    Actual list storage, we can provide the parts with whatever type of list we want.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default, a ship with no parts??!! Need to install some equipment.
    parts​(List<com.simsilica.es.EntityId> dataset)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • dataset

      private List<com.simsilica.es.EntityId> dataset
      Actual list storage, we can provide the parts with whatever type of list we want.
  • Constructor Details

    • parts

      public parts()
      Default, a ship with no parts??!! Need to install some equipment.
    • parts

      public parts(List<com.simsilica.es.EntityId> dataset)
      Parameters:
      dataset -
  • Method Details

    • getDataset

      public List getDataset()
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: