2-APL UPC project.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 41 lines 661 B view raw
1package cardtable; 2 3public class Agent 4{ 5 protected String _name; 6 7 // 0 player 8 // 1 gatekeeper 9 // 2 notary 10 11 /* BUG: add set/get method and remove protected */ 12 protected int _type; 13 14 /* BUG: _position null means agent is not sit at the table, add set/get method */ 15 protected Integer _position = null; 16 17 public Agent( String name ) { 18 _name = name; 19 } 20 21 public String getName() { 22 return _name; 23 } 24 25 public int getType() { 26 return _type; 27 } 28 29 public Integer getPosition() { 30 return _position; 31 } 32 33 public boolean isSit() { 34 return (_position != null); 35 } 36 37 public String toString() { 38 return getName(); 39 } 40 41}