All pastes #246892 Raw Edit

SkareCrow

public java v1 · immutable
#246892 ·published 2006-11-12 20:35 UTC
rendered paste body
/** * @(#)Player.java * * Player - Half Life Player Class * * @author Justin Novak - SkareCrow * @version 1.00 2006/11/12 */public class Player {	private static final String EOL = System.getProperty("line.separator");	private int index;	private String name;	private int kills;	private String time;	/**	 * No Arguements Constructor	 * For Objects that extend Player	 */	public Player() { }	/**	 * Class Constructor	 *	 * @param index Description	 * @param name 	Description	 * @param kills Description	 * @param time 	Description	 */	public Player(int index, String name, int kills, String time);		this.index = index;		this.name = name;		this.kills = kills;		this.time = time;	}	/**	 * Set Method for index property	 *	 * @param index	Description	 */	public void setIndex(int index) {		this.index = index;	}	/**	 * Get Method for index property	 *	 * @returns The Player index property	 */	public String getIndex() {		return index;	}	/**	 * Set Method for name property	 *	 * @param name Description	 */	public void setName(String name) {		this.name = name;	}	/**	 * Get Method for name property	 *	 * @returns The Player name property	 */	public String getName() {		return name;	}	/**	 * Set Method for kills property	 *	 * @param kills Description	 */	public void setKills(int kills) {		this.kills = kills;	}	/**	 * Get Method for kills property	 *	 * @returns The Player kills property	 */	public int getKills() {		return kills;	}	/**	 * Set Method for time property	 *	 * @param time Description	 */	public void setTime(int time) {		this.time = time;	}	/**	 * Get Method for time property	 *	 * @returns time The Player time property	 */	public String getTime() {		return time;	}	/**	 * Method to convert Player to an Array	 *	 * @returns An array containing all the properties of Player	 */	public Object[] toArray() {		return new Object[] {index, name, kills, time};	}	/**	 * Method to convert Player to one-line String	 *	 * @returns An one-line String containing all the properties of Player	 */	public String toString() {		return "Index: " + index + EOL +			   "Name: " + name + EOL +			   "Kills: " + kills + EOL +			   "Time: " + time + EOL;	}} // end Player Class