Start() public method

public Start ( ) : void
return void
示例#1
0
文件: AliveTest.cs 项目: quregame/gg
    public void AliveNewGame()
    {
        var player = new PlayerStats();

        PlayerStats.death = true;
        player.Start();
        Assert.False(PlayerStats.death);
    }
示例#2
0
文件: DeathTest.cs 项目: quregame/gg
    public void DeathWhenBigDamage()
    {
        var player = new PlayerStats();

        player.Start();
        PlayerStats.curHP = PlayerStats.curHP - 10000;
        player.Update();
        Assert.True(PlayerStats.death);
    }
示例#3
0
    public void SharpincreaseWhenStatUp()
    {
        var player   = new PlayerStats();
        var stats    = new WindowStats();
        int oldsharp = PlayerStats.sharpness;

        player.Start();
        PlayerStats.statspoints = 1;
        stats.upsharp();
        Assert.Greater(PlayerStats.sharpness, oldsharp);
    }
示例#4
0
    public void VitStatIncreaseTestWhenStatUp()
    {
        var player = new PlayerStats();
        var stats  = new WindowStats();
        int oldvit = PlayerStats.vitality;

        player.Start();
        PlayerStats.statspoints = 1;
        stats.upvit();
        Assert.Greater(PlayerStats.vitality, oldvit);
    }
示例#5
0
    public void DefStatIncreaseWhenStatUp()
    {
        var player = new PlayerStats();
        var stats  = new WindowStats();
        int olddef = PlayerStats.defense;

        player.Start();
        PlayerStats.statspoints = 1;
        stats.updef();
        Assert.Greater(PlayerStats.defense, olddef);
    }
示例#6
0
    public void DMGincreaseWhenStatUp()
    {
        var player = new PlayerStats();
        var stats  = new WindowStats();

        player.Start();
        float olddmg = PlayerStats.maxDMG;

        PlayerStats.statspoints = 1;
        stats.upsharp();
        Assert.Greater(PlayerStats.HP, olddmg);
    }
示例#7
0
    public void DEFincreaseWhenStatUp()
    {
        var player = new PlayerStats();
        var stats  = new WindowStats();

        player.Start();
        float olddef = PlayerStats.DEF;

        PlayerStats.statspoints = 1;
        stats.updef();
        Assert.Greater(PlayerStats.HP, olddef);
    }
示例#8
0
    public void HPincreaseWhenStatUp()
    {
        var player = new PlayerStats();
        var stats  = new WindowStats();

        player.Start();
        float oldhp = PlayerStats.HP;

        PlayerStats.statspoints = 1;
        stats.upvit();
        Assert.Greater(PlayerStats.HP, oldhp);
    }