Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.meowers.cide.data
Class GameObject  view GameObject download GameObject.java

java.lang.Object
  extended byorg.meowers.cide.data.GameObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
GameData, Map, Tile, TileSet

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

This abstract class contains the framework for all types of objects necessary for the games internal data structures.

Version:
%I%, %G%

Field Summary
(package private)  boolean dirty
           
static int GAME_DATA
          This is a GameData type game object.
static int MAP
          This is a Map type game object.
(package private) static int MAX_TYPE
           
(package private)  java.lang.String name
           
static int TILE
          This is a Tile type game object.
static int TILE_SET
          This is a TileSet type game object.
(package private)  int type
           
 
Constructor Summary
GameObject()
           
 
Method Summary
 java.lang.String getName()
          Returns the internal name of this object.
 int getType()
          Returns the type of this GameObject.
 boolean isDirty()
          Returns true if this GameObject is dirty.
 void setName(java.lang.String name)
          Sets the name of this GameObject to the specified String.
 java.lang.String toString()
          Converts this GameObject to a String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GAME_DATA

public static final int GAME_DATA
This is a GameData type game object.

See Also:
Constant Field Values

TILE

public static final int TILE
This is a Tile type game object.

See Also:
Constant Field Values

MAP

public static final int MAP
This is a Map type game object.

See Also:
Constant Field Values

TILE_SET

public static final int TILE_SET
This is a TileSet type game object.

See Also:
Constant Field Values

MAX_TYPE

static final int MAX_TYPE
See Also:
Constant Field Values

dirty

boolean dirty

name

java.lang.String name

type

int type
Constructor Detail

GameObject

public GameObject()
Method Detail

isDirty

public boolean isDirty()
Returns true if this GameObject is dirty.


getName

public java.lang.String getName()
Returns the internal name of this object.


setName

public void setName(java.lang.String name)
Sets the name of this GameObject to the specified String.


getType

public int getType()
Returns the type of this GameObject.


toString

public java.lang.String toString()
Converts this GameObject to a String. The String representation is the name of the GameObject .