scg/ch14/gamestuff/TradesFor

From FANG

Jump to: navigation, search

01 package scg.ch14.gamestuff;
02 
03 /**
04  * Represents a pair of items which a Critter will trade for. That is,
05  * given the "getsUUID" it will return the "givesUUID".
06  */
07 public class TradesFor {
08   private final String getsUUID;
09   private final String givesUUID;
10   
11   /** get the UUID which is the receiving UUID */
12   public String getGetsUUID() {
13     return getsUUID;
14   }
15 
16   /** get the UUID which is given back for the UUID */
17   public String getGivesUUID() {
18     return givesUUID;
19   }
20 
21   /**
22    * Construct a new {@link TradesFor} pair.
23    @param getsUUID the UUID received
24    @param givesUUID the UUID given
25    */
26   public TradesFor(String getsUUID, String givesUUID{
27     super();
28     this.getsUUID = getsUUID;
29     this.givesUUID = givesUUID;
30   }
31 }
32 
33 //Uploaded on Mon Mar 29 21:41:29 EDT 2010


Download/View scg/ch14/gamestuff/TradesFor.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter

Games
Games