public class RegistrationData
extends java.lang.Object
Constructor and Description |
---|
RegistrationData(java.lang.String name,
java.awt.Color color,
int image)
Creates a new RegistrationData object with the specified parameters.
|
public RegistrationData(java.lang.String name, java.awt.Color color, int image)
name
- the name to be associated with the ship being registeredcolor
- the color for the ship to appearimage
- the index of the image from the server's image list
to be used for this shippublic java.lang.String getName()
public java.awt.Color getColor()
public int getImage()
public java.lang.String toString()
toString
in class java.lang.Object