예제 #1
0
    public EnemyLibraryCard(string name, string tooltip, string encyclopediaEntry,
                            string stepSoundPath, string attackSoundPath, string dieSoundPath,
                            int maxhealth, int maxplays, int attackminrange, int attackmaxrange, int attackDamage,
                            GridControl.TargetTypes attackTargetType, Enemy.MoveTarget moveTarget, int challengeRating, bool isSubclass)
    {
        Name              = name;
        Tooltip           = tooltip;
        EncyclopediaEntry = encyclopediaEntry;
        MaxHealth         = maxhealth;
        MaxPlays          = maxplays;
        AttackMinRange    = attackminrange;
        AttackMaxRange    = attackmaxrange;
        AttackDamage      = attackDamage;
        AttackTargetType  = attackTargetType;
        ThisMoveTarget    = moveTarget;
        ChallengeRating   = challengeRating;
        IsSubclass        = isSubclass;

        SpritePath = "sprites/enemies/new/" + name;

        if (stepSoundPath != null)
        {
            StepSoundPath = "sprites/audio/sfx/step/" + stepSoundPath;
        }
        else
        {
            StepSoundPath = "sprites/audio/sfx/step/fast high step";
        }

        if (dieSoundPath != null)
        {
            DieSoundPath = "sprites/audio/sfx/die/" + dieSoundPath;
        }
        else
        {
            DieSoundPath = "sprites/audio/sfx/die/dog yelp";
        }
        if (attackSoundPath != null)
        {
            AttackSoundPath = "sprites/audio/sfx/attack/" + attackSoundPath;
        }
        else
        {
            DieSoundPath = "sprites/audio/sfx/attack/man pump up";
        }
    }
예제 #2
0
    public EnemyLibraryCard(string name, string tooltip, string encyclopediaEntry, 
		string stepSoundPath, string attackSoundPath, string dieSoundPath,
		int maxhealth, int maxplays, int attackminrange, int attackmaxrange, int attackDamage,
		GridControl.TargetTypes attackTargetType, Enemy.MoveTarget moveTarget, int challengeRating, bool isSubclass)
    {
        Name = name;
        Tooltip = tooltip;
        EncyclopediaEntry = encyclopediaEntry;
        MaxHealth = maxhealth;
        MaxPlays = maxplays;
        AttackMinRange = attackminrange;
        AttackMaxRange = attackmaxrange;
        AttackDamage = attackDamage;
        AttackTargetType = attackTargetType;
        ThisMoveTarget = moveTarget;
        ChallengeRating = challengeRating;
        IsSubclass = isSubclass;

        SpritePath = "sprites/enemies/new/" + name;

        if(stepSoundPath != null) {
            StepSoundPath = "sprites/audio/sfx/step/" + stepSoundPath;
        } else {
            StepSoundPath = "sprites/audio/sfx/step/fast high step";
        }

        if(dieSoundPath != null) {
            DieSoundPath = "sprites/audio/sfx/die/" + dieSoundPath;
        } else {
            DieSoundPath = "sprites/audio/sfx/die/dog yelp";
        }
        if(attackSoundPath != null) {
            AttackSoundPath = "sprites/audio/sfx/attack/" + attackSoundPath;
        } else {
            DieSoundPath = "sprites/audio/sfx/attack/man pump up";
        }
    }