public void UpdateWithIOEvent(IOEvent ioEvent) { if (ioEvent.Equals(space)) { Fire(); } }
public void UpdateWithIOEvent(IOEvent ioEvent) { if (ioEvent.Equals(forward)) { this.SpeedUp = true; } else if (ioEvent.Equals(back)) { this.SlowDown = true; } else if (ioEvent.Equals(left)) { turnRight = false; turnLeft = true; } else if (ioEvent.Equals(right)) { turnRight = true; turnLeft = false; } }
public void UpdateWithIOEvent(IOEvent ioEvent) { if (ioEvent.Equals(forward)) { aimPointMove = aimPointMove + new Vector2(0, -1); } else if (ioEvent.Equals(back)) { aimPointMove = aimPointMove + new Vector2(0, 1); } else if (ioEvent.Equals(left)) { aimPointMove = aimPointMove + new Vector2(-1, 0); } else if (ioEvent.Equals(right)) { aimPointMove = aimPointMove + new Vector2(1, 0); } else if (ioEvent.Equals(fire)) { NotifyObservers(new GunnerFire()); } }
public void UpdateWithIOEvent(IOEvent ioEvent) { if (ioEvent.Equals(forward)) { movementControl = movementControl + 1; } else if (ioEvent.Equals(back)) { movementControl = movementControl - 1; } else if (ioEvent.Equals(left)) { angleControl = angleControl - 1; } else if (ioEvent.Equals(right)) { angleControl = angleControl + 1; } else if (ioEvent.Equals(fire) || ioEvent.Equals(space)) { isFire = true; } }