Exemplo n.º 1
0
 public Window3()
 {
     
     InitializeComponent();
     skirmish = new Battle();
     UpdateStats();
     ImageDefault();
 }
Exemplo n.º 2
0
 public MultiplayerClient()
 {
     InitializeComponent();
     skirmish = new Battle();
     UpdateStats();
     ImageDefault();
     YourAction = "";
 }
Exemplo n.º 3
0
        public Window1()
        {
            InitializeComponent();
            skirmish = new Battle();
            YourHP.Text = "Your Health: " + ("" + skirmish.Player1.Health());
            EnemyHP.Text = "Enemy Health: " + ("" + skirmish.Player2.Health());
            YourGrenades.Text = "Grenades: " + skirmish.Player1.grenades;
            EnemyGrenades.Text = "Grenades: " + skirmish.Player2.grenades;

        }
Exemplo n.º 4
0
        public Window2(char isHost)
        {

            InitializeComponent();
            skirmish = new Battle();
            UpdateStats();
            ImageDefault();
            YourAction = "";
            local = false;
            single = false;
            host = true;
            playerTurn = 0;
        }
Exemplo n.º 5
0
        public Window2(int sing)
        {

            InitializeComponent();
            skirmish = new Battle();
            UpdateStats();
            ImageDefault();
            YourAction = "";
            local = false;
            single = true;
            host = false;
            enemiesDefeated = 0;
            playerTurn = 0;
        }
Exemplo n.º 6
0
	public void Rule9(float dt, World world){ 
	switch (s9)
	{

	case -1:
	___inbounds90 = (

(InboundShips).Select(__ContextSymbol124 => new { ___s93 = __ContextSymbol124 })
.Where(__ContextSymbol125 => ((Owner.IsNone) || (!(((__ContextSymbol125.___s93.Owner.CommanderNumber) == (Owner.Value.CommanderNumber))))))
.Select(__ContextSymbol126 => __ContextSymbol126.___s93)
.ToList<Ship>()).ToList<Ship>();
	if(((Battle.IsNone) && (((___inbounds90.Count) > (0)))))
	{

	goto case 5;	}else
	{

	s9 = -1;
return;	}
	case 5:
	___StartBattle90 = new Battle(this);
	Battle = (new Just<Battle>(___StartBattle90));
	s9 = 8;
return;
	case 8:
	if(!(((Battle.Value.AttackingShips.Count) == (0))))
	{

	s9 = 8;
return;	}else
	{

	goto case 7;	}
	case 7:
	Battle = Battle;
	s9 = 6;
return;
	case 6:
	Battle = (new Nothing<Battle>());
	s9 = -1;
return;	
	default: return;}}
Exemplo n.º 7
0
 public Window1(string enemy)
 {
     InitializeComponent();
     skirmish = new Battle();
     enemiesDefeated = 0;
 }
Exemplo n.º 8
0
 public LocalMultiplayer()
 {
     InitializeComponent();
     skirmish = new Battle();
     UpdateStats();
 }
Exemplo n.º 9
0
public AttackingFleet(Fleet myFleet, Battle myBattle)
	{JustEntered = false;
 frame = World.frame;
		MyFleet = myFleet;
		MyBattle = myBattle;
		
}