Esempio n. 1
0
 /// <summary>
 /// Copy constructor.
 /// </summary>
 /// <param name="src">Initialize with the values in this object.</param>
 public Card(Card src)
 {
     move = src.Move;
     priority = src.Priority;
 }
Esempio n. 2
0
 public Card(XElement element)
 {
     priority = int.Parse(element.Attribute("priority").Value);
     move = (ROBOT_MOVE)Enum.Parse(typeof(ROBOT_MOVE), element.Attribute("move").Value);
 }
Esempio n. 3
0
 /// <summary>
 /// Create a Card object.
 /// </summary>
 /// <param name="move">The move for the card.</param>
 /// <param name="priority">The priority for the move. Higher priorities go first.</param>
 public Card(ROBOT_MOVE move, int priority)
 {
     this.move = move;
     this.priority = priority;
 }