mirror of
https://github.com/michaelrausch/Party-Parrots-At-Sea.git
synced 2026-05-09 14:28:43 +00:00
32 lines
604 B
Java
32 lines
604 B
Java
package seng302;
|
|
|
|
/*
|
|
Represents a boat in the race.
|
|
|
|
@param teamName The name of the team sailing the boat
|
|
*/
|
|
public class Boat
|
|
{
|
|
// The name of the team, this is also the name of the boat
|
|
private String teamName = null;
|
|
|
|
public Boat(String teamName) {
|
|
this.teamName = teamName;
|
|
}
|
|
|
|
/*
|
|
Returns the name of the team sailing the boat
|
|
@returns The name of the team
|
|
*/
|
|
public String getTeamName(){
|
|
return this.teamName;
|
|
}
|
|
|
|
/*
|
|
Sets the name of the team sailing the boat
|
|
@param teamName The name of the team
|
|
*/
|
|
public void setTeamName(String teamName){
|
|
this.teamName = teamName;
|
|
}
|
|
} |