Class coordinates

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

public class coordinates extends Object implements com.simsilica.es.EntityComponent
Component that stores a strategic map xy coordinate as a Vector (for ease of later use).

Entities that have an independent (not inorbit) position on the map will have this as a component.

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

    • coords

      private com.jme3.math.Vector2f coords
  • Constructor Details

    • coordinates

      public coordinates(com.jme3.math.Vector2f coords)
      Parameters:
      coords -
  • Method Details

    • toVector2f

      public com.jme3.math.Vector2f toVector2f()
      Return a usable datatype.
      Returns: