Project cleanup pre merge.
This commit is contained in:
@@ -22,46 +22,46 @@ import java.sql.SQLException;
|
||||
|
||||
public class ClaimMinePowerAction extends AbstractPowerAction {
|
||||
|
||||
public ClaimMinePowerAction(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
}
|
||||
public ClaimMinePowerAction(ResultSet rs) throws SQLException {
|
||||
super(rs);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _startAction(AbstractCharacter source, AbstractWorldObject worldObject, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
||||
@Override
|
||||
protected void _startAction(AbstractCharacter source, AbstractWorldObject worldObject, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
||||
|
||||
if (source == null || worldObject == null)
|
||||
return;
|
||||
if (source == null || worldObject == null)
|
||||
return;
|
||||
|
||||
if (!(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)))
|
||||
return;
|
||||
if (!(source.getObjectType().equals(Enum.GameObjectType.PlayerCharacter)))
|
||||
return;
|
||||
|
||||
PlayerCharacter playerCharacter = (PlayerCharacter) source;
|
||||
PlayerCharacter playerCharacter = (PlayerCharacter) source;
|
||||
|
||||
if (!(worldObject.getObjectType().equals(Enum.GameObjectType.Building)))
|
||||
return;
|
||||
if (!(worldObject.getObjectType().equals(Enum.GameObjectType.Building)))
|
||||
return;
|
||||
|
||||
Building mineBuilding = (Building)worldObject;
|
||||
Building mineBuilding = (Building) worldObject;
|
||||
|
||||
if (mineBuilding.getRank() > 0)
|
||||
return;
|
||||
if (mineBuilding.getRank() > 0)
|
||||
return;
|
||||
|
||||
Mine mine = Mine.getMineFromTower(mineBuilding.getObjectUUID());
|
||||
Mine mine = Mine.getMineFromTower(mineBuilding.getObjectUUID());
|
||||
|
||||
if (mine == null)
|
||||
return;
|
||||
if (mine == null)
|
||||
return;
|
||||
|
||||
if (mine.claimMine(playerCharacter) == true)
|
||||
ChatManager.sendSystemMessage( (PlayerCharacter) source, "You successfully claimed this mine..");
|
||||
}
|
||||
if (mine.claimMine(playerCharacter) == true)
|
||||
ChatManager.sendSystemMessage((PlayerCharacter) source, "You successfully claimed this mine..");
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _handleChant(AbstractCharacter source, AbstractWorldObject target, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
||||
}
|
||||
@Override
|
||||
protected void _handleChant(AbstractCharacter source, AbstractWorldObject target, Vector3fImmutable targetLoc, int trains, ActionsBase ab, PowersBase pb) {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc,
|
||||
int numTrains, ActionsBase ab, PowersBase pb, int duration) {
|
||||
// TODO Auto-generated method stub
|
||||
@Override
|
||||
protected void _startAction(AbstractCharacter source, AbstractWorldObject awo, Vector3fImmutable targetLoc,
|
||||
int numTrains, ActionsBase ab, PowersBase pb, int duration) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user