Hi, I rapidly need help!!! I have developed this game, (or the classes anyway) and the compiler just throws a bunch of crap at me when I try to compile it.
public class ship
{
public int fuel = 100;
public int armour = 100;
public int shields = 100;
public int power = 100;
public bool dead = false;
public bool radprotect = false;
public void laserdamage()
{
armour -= 30;
power -= 10;
}
public void rocketdamage()
{
armour -= 50;
power -= 20;
}
public void nukedamage()
{
dead = true;
}
}
//Somewhere else...
ship player = new ship();
Console.Writeline(player.armour);
And it compiles sometimes but when it does it give me 5570268 as the value EVERYTIME!!! Help!!!
Also, if it helps, the "Somewhere else" is in another class, in my Main() function.