Delete Fight.java

master
SariusRu 9 years ago committed by GitHub
parent 680aa07c13
commit b69fb2b7f8

@ -1,57 +0,0 @@
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Fight here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Fight extends Map_World
{
/**
* Constructor for objects of class Fight.
*
*/
Province offenderProvince;
Province defenderProvince;
public Fight()
{
}
public void act()
{
for ( int i = 0; i <= provinceCount; i++)
{
if (provinces[i].hasClicked() == true)
{
provinces[i] = offenderProvince;
chooser(provinces[i], i);
break;
}
}
}
private void chooser(Province offenderProvince, int i)
{
int EntitiesOffender = provinces[i].getEntityCount();
i = 0;
for (i = 0; i <= provinceCount; i++)
{
if (provinces[i].hasClicked() == true && provinces[i] != offenderProvince)
{
provinces[i] = defenderProvince;
int EntitiesDefender = provinces[i].getEntityCount();
chooser(offenderProvince,defenderProvince,EntitiesOffender,EntitiesDefender);
break;
}
}
}
private void chooser(Province offenderProvince, Province defenderProvince, int EntitiesOffender, int EntitiesDefender)
{
int diceDefender = Dice_Defender.dice_defender(EntitiesDefender);
}
}
Loading…
Cancel
Save