|
|
@ -6,6 +6,7 @@ package com.msb.inter.impl;/**
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import com.msb.model.Bullet;
|
|
|
|
import com.msb.model.Bullet;
|
|
|
|
|
|
|
|
import com.msb.model.GameModel;
|
|
|
|
import com.msb.model.Tank;
|
|
|
|
import com.msb.model.Tank;
|
|
|
|
import com.msb.enums.DirEnum;
|
|
|
|
import com.msb.enums.DirEnum;
|
|
|
|
import com.msb.inter.FireStrategy;
|
|
|
|
import com.msb.inter.FireStrategy;
|
|
|
@ -25,6 +26,7 @@ public class FourFireStrategy implements FireStrategy {
|
|
|
|
for (DirEnum value : DirEnum.values()) {
|
|
|
|
for (DirEnum value : DirEnum.values()) {
|
|
|
|
// new Bullet(bX, bY, value, tank.getGroup(), tank.getGameModel());
|
|
|
|
// new Bullet(bX, bY, value, tank.getGroup(), tank.getGameModel());
|
|
|
|
new Bullet(bX, bY, value, tank.getGroup());
|
|
|
|
new Bullet(bX, bY, value, tank.getGroup());
|
|
|
|
|
|
|
|
// GameModel.INSTANCE.add(new Bullet(bX, bY, value, tank.getGroup()));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|