Skip to content
Permalink
32004f1db0
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
48 lines (38 sloc) 671 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)
{
_players = new ArrayList<Player>();
_name = name;
_boardIndex = boardIndex;
}
public int getBoardIndex()
{
return _boardIndex;
}
public String getName()
{
return _name;
}
public void getLandedOn(Player p) {}
public void addPlayers(ArrayList<Player> players)
{
for(Player p : players)
{
_players.add(p);
}
}
public void removePlayer(Player p)
{
_players.remove(p);
}
public void addPlayer(Player p)
{
_players.add(p);
}
}