Class Tool

java.lang.Object
  |
  +--Tool

class Tool
extends java.lang.Object

An int wrapper class that specifies the type of tool currently in use. All the tool type static ints are defined here.


Constructor Summary
(package private) Tool(int _type)
          Makes a new tool obejct with a type corresponding to the int passed in, which should be one of the static ints defined in this class.
 
Method Summary
static boolean equals(Tool t1, Tool t2)
          Checks if two tools have equal type.
 java.lang.String getName()
          Returns a string containing the name for the tool type
 int getType()
          Gets the type int of the tool.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tool

Tool(int _type)
Makes a new tool obejct with a type corresponding to the int passed in, which should be one of the static ints defined in this class.
Parameters:
_type - the type int
Method Detail

getType

public int getType()
Gets the type int of the tool.
Returns:
the int type

equals

public static boolean equals(Tool t1,
                             Tool t2)
Checks if two tools have equal type.
Parameters:
tool1 - the first tool to check
tool2 - the second tool to check
Returns:
true if they're equal, false if they're not

getName

public java.lang.String getName()
Returns a string containing the name for the tool type