/// <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; }
public Card(XElement element) { priority = int.Parse(element.Attribute("priority").Value); move = (ROBOT_MOVE)Enum.Parse(typeof(ROBOT_MOVE), element.Attribute("move").Value); }
/// <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; }