Android Open Source - wherewithal Game






From Project

Back to project page wherewithal.

License

The source code is released under:

GNU General Public License

If you think the Android project wherewithal listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.curchod.dto;
/*from  w  w  w .j  a  v a2s.  c  o  m*/
import java.util.Hashtable;

/**
 * <game>
<test_name>neu3_writing</test_name>
<test_id>-4580659490352698997</test_id>
<test_type>writing</test_type>
<test_status>setup</test_status>
<test_format>CardGame</test_format>
<player_status id="7655807335881695697">setup</player_status>
<player_status id="4275947837592331318">setup</player_status>
<player_status id="-4532926416625862117">setup</player_status>
</game>
 * @author Administrator
 *
 */
public class Game 
{

  private String test_name;
  private String test_id;
  private String class_id;
  private String test_type;
  private String test_status;
  private String test_format;
  private Hashtable <String,String> player_status;
  
  public Game()
  {
    player_status = new Hashtable<String,String>();
  }
  
  //-- test_name
  public void setTestName(String _test_name)
  {
    test_name = _test_name;
  }
  
  public String getTestName()
  {
    return test_name;
  }
  
  //--test_id
  public void setTestId(String _test_id)
  {
    test_id = _test_id;
  }
    
  public String getTestId()
  {
    return test_id;
  }
  
  //--class_id
    public void setClassId(String _class_id)
    {
      test_id = _class_id;
    }
      
    public String getClassId()
    {
      return class_id;
    }
    
  //-- test_type
  public void setTestType(String _test_type)
  {
    test_type = _test_type;
  }
    
  public String getTestType()
  {
    return test_type ;
  }
    
  //-- test_status
  public void setTestStatus(String _test_status)
  {
    test_status = _test_status;
  }
    
  public String getTestStatus()
  {
    return test_status ;
  }
    
  //--
  public void setTestFormat(String _test_format)
  {
    test_format = _test_format;
  }
    
  public String getTestFormat()
  {
    return test_format;
  }
    
  //-- Player Status
  /**
   * Set full Hash.
   * @param _player_status
   */
  public void setPlayerStatus(Hashtable _player_status)
  {
     player_status = _player_status;
  }
  
  /**
   * Get full Hash.
   * @return
   */
  public Hashtable getPlayerStatus()
  {
    return  player_status;
  }
  
  /**
   * Set the status of a player with their id as the key, and status as value.
   * @param player_id
   * @param status
   */
  public void setPlayerStatus(String player_id, String status)
  {
     player_status.put(player_id, status);
  }
  
  /**
   * Return the status of a player using their id as the key.
   * @param player_id
   * @return
   */
  public String getPlayerStatus(String player_id)
  {
    return  player_status.get(player_id);
  }
}




Java Source Code List

com.curchod.domartin.AsyncLoadGameFile.java
com.curchod.domartin.Constants.java
com.curchod.domartin.Filer.java
com.curchod.domartin.HouseDeck.java
com.curchod.domartin.IWantTo.java
com.curchod.domartin.MockNdefMessages.java
com.curchod.domartin.NfcUtils.java
com.curchod.domartin.RemoteCall.java
com.curchod.domartin.Sarray.java
com.curchod.domartin.Scoring.java
com.curchod.domartin.TagDescription.java
com.curchod.domartin.UtilityTo.java
com.curchod.dto.Card.java
com.curchod.dto.DeckCard.java
com.curchod.dto.GameWord.java
com.curchod.dto.Game.java
com.curchod.dto.PlayerInfo.java
com.curchod.dto.SavedTest.java
com.curchod.dto.SingleWordTestResult.java
com.curchod.dto.SingleWord.java
com.curchod.json.VocabularyDefinition.java
com.curchod.json.VocabularyLearningObject.java
com.curchod.wherewithal.AddPlayerActivity.java
com.curchod.wherewithal.CardDeckActivity.java
com.curchod.wherewithal.CardDecksActivity.java
com.curchod.wherewithal.CardPlayerHouseDeckActivity.java
com.curchod.wherewithal.CardPlayerWordsActivity.java
com.curchod.wherewithal.CardPlayersListActivity.java
com.curchod.wherewithal.CardsActivity.java
com.curchod.wherewithal.GameConcentrationActivity.java
com.curchod.wherewithal.GameReadingStonesActivity.java
com.curchod.wherewithal.GameReadingStonesInstructionsActivity.java
com.curchod.wherewithal.GameSnazzyThumbworkActivity.java
com.curchod.wherewithal.GameWritingStonesActivity.java
com.curchod.wherewithal.GamesActivity.java
com.curchod.wherewithal.InstructionsActivity.java
com.curchod.wherewithal.MainActivity.java
com.curchod.wherewithal.PlayerActivity.java
com.curchod.wherewithal.PlayersActivity.java