Class EnemyInfo

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class EnemyInfo
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Cloneable
    Represents the info about an enemy in the LevelInfo.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int energy
      The enemies energy.
      java.lang.String name
      The name of the enemy class.
      int x
      The enemies x position.
      int y
      The enemies y position.
    • Constructor Summary

      Constructors 
      Constructor Description
      EnemyInfo​(java.lang.String name, int energy, int x, int y)
      Creates a new EnemyInfo.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object clone()
      Returns a clone.
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        public java.lang.String name
        The name of the enemy class.
      • energy

        public int energy
        The enemies energy.
      • x

        public int x
        The enemies x position.
      • y

        public int y
        The enemies y position.
    • Constructor Detail

      • EnemyInfo

        public EnemyInfo​(java.lang.String name,
                         int energy,
                         int x,
                         int y)
        Creates a new EnemyInfo.
        Parameters:
        name - The name of the enemy class.
        energy - The enemies energy.
        x - The enemies x position.
        y - The enemies y position.
    • Method Detail

      • clone

        public java.lang.Object clone()
        Returns a clone.
        Overrides:
        clone in class java.lang.Object