예제 #1
0
 public void ThrowArtifact(Artifact a)
 {
     inventory.Remove(a);
 }
예제 #2
0
 public void TransferArtifact(Artifact a, Hero h)
 {
     inventory.Remove(a);
     h.inventory.Add(a);
 }
예제 #3
0
        //состояние

        public void AddToInventory(Artifact a)
        {
            inventory.Add(a);
        }