Player.java :  » Game » dominion-dot-com » com » dot » dominion » domain » Android Open Source

Android Open Source » Game » dominion dot com 
dominion dot com » com » dot » dominion » domain » Player.java
package com.dot.dominion.domain;

/**
 * Defines the actions each individual player needs to be able to take.
 * 
 * @author Shahin
 */
public interface Player {
  
  /**
   * Changes the players name to the given name.
   * 
   * @param name The name by which the player should now go by.
   */
  public void changeName (String name);
  
  /**
   * @return The player's id.
   */
  public int getId ();
  
  /**
   * @return The player's current name.
   */
  public String getName ();
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.