public void logic(){
		
		//̹ƶ
		if( clientTank.getType()==Tank.BLACK_TANK ){
			clientTank.active(selectKey, tankSpeed+BLACK_BUFF,SCREEN_WIDTH,SCREEN_HEIGHT);
		}
		else{
			clientTank.active(selectKey, tankSpeed,SCREEN_WIDTH,SCREEN_HEIGHT);
		}

		//
		if( fire==true ){
			clientTank.fire();
			fire = false;
		}
		//ӵƶ
		if( clientTank.getType()==Tank.BLACK_TANK ){
			for(Bullet b:clientTank.getBullets()){
				b.active(bulletSpeed+BLACK_BUFF);
			}
		}
		else{
			for(Bullet b:clientTank.getBullets()){
				b.active(bulletSpeed);
			}
		}
		
		//ɾԽӵ
		for(int i=0; i<clientTank.getBullets().size(); i++){
			if( !clientTank.getBullets().get(i).inRange(SCREEN_WIDTH, SCREEN_HEIGHT) ){
				clientTank.getBullets().remove(i);
				break;
			}
		}
		
		//ҪϢ
		clientTank.setClientMessage(message);
		
		
		//Լ̹ݸӷõҵ̹
		sendAndGet();

		//Լޱӵ
		for(Tank tank:tanks){
				clientTank.hit(tank.getBullets(),bulletDamage);
		}
		
		//Լӵ޴
		for(Bullet b:clientTank.getBullets()){
			b.hit(tanks);
		}
			
		
	}