Skip to content
Permalink
cc8ac19a58
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
45 lines (35 sloc) 572 Bytes
package model;
import java.util.ArrayList;
public class Tile
{
private String _name;
private int _boardIndex;
private ArrayList<Player> _players;
public Tile(String name, int boardIndex)
{
_name = name;
_boardIndex = boardIndex;
}
public int getBoardIndex()
{
return _boardIndex;
}
public String getName()
{
return _name;
}
public void getLandedOn(Player p)
{
}
public void addPlayers(Player... players)
{
for(Player p : players)
{
_players.add(p);
}
}
public void removePlayer(Player p)
{
_players.remove(p);
}
}