de.rico.engine.cursor
Class GameCursor

java.lang.Object
  extended by de.rico.engine.effect.ortho.OverlayImage
      extended by de.rico.engine.cursor.GameCursor

public class GameCursor
extends OverlayImage

This class represents a game cursor that is based on an image file

Author:
Frank Bruns

Constructor Summary
GameCursor(java.lang.Enum id, java.lang.String filePath)
          Creates a new game cursor with the specified id and image file path
 
Method Summary
 java.lang.Enum getId()
          Returns the id of this cursor
 
Methods inherited from class de.rico.engine.effect.ortho.OverlayImage
getFilePath, getHeight, getImage, getWidth
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GameCursor

public GameCursor(java.lang.Enum id,
                  java.lang.String filePath)
Creates a new game cursor with the specified id and image file path

Parameters:
id - cursor id (from a custom enumeration class)
filePath - path to image file for the cursor icon
Method Detail

getId

public java.lang.Enum getId()
Returns the id of this cursor

Returns:
cursor id