Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Write a description of class Take here.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class Take extends Command
- {
- // instance variables - replace the example below with your own
- private Item item;
- /**
- * Initialize the item
- * pre condition- Item is not null.
- */
- public Take(Item item)
- {
- // initialise instance variables
- assert item != null : "Take.Take gets null item";
- System.out.println("ITS WORKING!!");
- this.item=item;
- }
- public String Process(GameMain ui, Game game)
- {
- // put your code here
- assert game != null : "Go.Process gets null game";
- System.out.println("test");
- return game.take(item);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement