gameLogic
Class GameObject

java.lang.Object
  extended by gameLogic.GameObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
Snake

public class GameObject
extends java.lang.Object
implements java.io.Serializable

This class represents an object that exists on the game board. Each GameObject has a GameObjectType describing which kind of object it is (e.g. Fruit, Wall etc).

Author:
Sixten Hilborn, Arian Jafari
See Also:
GameObjectType, Serialized Form

Method Summary
 GameObjectType getType()
          Gets the GameObjectType of this object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public GameObjectType getType()
Gets the GameObjectType of this object.

Returns:
This object's GameObjectType.