public Player() { ConnectionList = new List<int>(); CurrentMachine = CreateStarterMachine(); ConnectionList.Add(CurrentMachine.GetId()); Selected = null; Money = START_MONEY; CurrentMission = 1; }
public bool Jump() { /*Jump method jumps player to new machine * Jump requires selected machine to be hacked */ if (Selected != null) if (Selected.IsHacked()){ CurrentMachine = Selected; Selected = null; ConnectionList = null; ConnectionList = new List<int>(); ConnectionList.Add(CurrentMachine.GetId()); return true; //Insert animation of Jump on true } return false; }