s3games.engine

## Class ElementType

- java.lang.Object
- - s3games.engine.ElementType

-     public class ElementType
      extends java.lang.Object

  Every movable element must have a type. Element type specifies the number of states and how the element is visualized on the board in each state.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `ImageWithHotSpot[]` | `images` images for all states, indexed from 0..numStates-1
    `java.lang.String` | `name` name of the element type
    `int` | `numStates` the number of states this element can take

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ElementType(java.lang.String name)` construct a new element type, fill the images manually

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### name

          public java.lang.String name

      name of the element type

    - #### numStates

          public int numStates

      the number of states this element can take

    - #### images

          public ImageWithHotSpot[] images

      images for all states, indexed from 0..numStates-1

  - ### Constructor Detail

    - #### ElementType

          public ElementType(java.lang.String name)

      construct a new element type, fill the images manually