Пример #1
0
    public override string ToString()
    {
        string stateString = "";

        // Players Weapon Type
        stateString = stateString + Weapon.ToString();
        stateString = stateString + " ";

        // Players Ammo
        stateString = stateString + AmmoAmount.ToString();
        stateString = stateString + " ";

        // Enemy Weapon Type
        stateString = stateString + EnemyWeapon.ToString();
        stateString = stateString + " ";

        // Enemy Ammo
        stateString = stateString + EnemyAmmoAmount.ToString();
        stateString = stateString + " ";

        // XCloseness to Enemy
        stateString = stateString + XDistanceToEnemy.ToString();
        stateString = stateString + " ";

        // YCloseness to Enemy
        stateString = stateString + YDistanceToEnemy.ToString();

        return(stateString);
    }