예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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);
        }
예제 #4
0
        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();
        }