public CompTank(TANK_TYPE type, SPEED_LEVEL speedLevel, Point spot) { InitializeComponent(); SetTopLevel(false); AutoSize = false; this.type = type; this.speedLevel = speedLevel; shape(); Location = spot; Size = new Size(TanksGame.tankWidth, TanksGame.tankHeight); }
public CompTank(TANK_TYPE type, SPEED_LEVEL speedLevel, Point location) { InitializeComponent(); SetTopLevel(false); AutoSize = false; Type = type; SpeedLevel = speedLevel; Direction = DIRECTION.D; Shape(); Location = location; Size = new Size(TanksGame.tankWidth, TanksGame.tankHeight); }
public UserTank(TANK_TYPE type, SPEED_LEVEL speedLevel, Point spot) { InitializeComponent(); SetTopLevel(false); AutoSize = false; Enabled = true; this.type = type; this.speedLevel = speedLevel; direction = DIRECTION.U; shape(); Location = spot; Size = new Size(TanksGame.tankWidth, TanksGame.tankHeight); }
private int stepTimer; // ms public CompTank(TANK_TYPE type, SPEED_LEVEL speedLevel, Point spot) { InitializeComponent(); SetTopLevel(false); AutoSize = false; this.type = type; this.speedLevel = speedLevel; this.game = TanksGame.gameRef; speedInit(); shape(); Location = spot; Size = new Size(TanksGame.tankWidth, TanksGame.tankHeight); walkAndAttackWorker.RunWorkerAsync(); }