Esempio n. 1
0
 public void Setup()
 {
     this.player     = TestHelper.GetPlayer();
     this.context    = this.player.GameContext;
     this.skillRank0 = this.CreateSkill(1, 0, 1, null, this.player.SelectedCharacter.CharacterClass);
     this.skillRank1 = this.CreateSkill(2, 1, 1, null, this.player.SelectedCharacter.CharacterClass);
     this.skillRank2 = this.CreateSkill((short)this.skillIdRank2, 2, 1, null, this.player.SelectedCharacter.CharacterClass);
     this.context.Configuration.Skills.Add(this.skillRank0);
     this.context.Configuration.Skills.Add(this.skillRank1);
     this.context.Configuration.Skills.Add(this.skillRank2);
     this.addAction = new AddMasterPointAction(this.context);
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CharacterGroupHandler"/> class.
 /// </summary>
 /// <param name="gameContext">The game context.</param>
 public CharacterGroupHandler(IGameContext gameContext)
     : base(gameContext)
 {
     this.createCharacterAction      = new CreateCharacterAction(gameContext);
     this.deleteCharacterAction      = new DeleteCharacterAction(gameContext);
     this.requestCharacterListAction = new RequestCharacterListAction();
     this.focusCharacterAction       = new FocusCharacterAction();
     this.characterSelectAction      = new SelectCharacterAction(gameContext);
     this.increaseStatsAction        = new IncreaseStatsAction();
     this.saveKeyConfigurationAction = new SaveKeyConfigurationAction();
     this.addMasterPointAction       = new AddMasterPointAction(gameContext);
 }
Esempio n. 3
0
        public void Setup()
        {
            this.player = TestHelper.GetPlayer();
            var context = this.player.GameContext;

            this.skillRank1 = this.CreateSkill(1, 1, 1, null, this.player.SelectedCharacter.CharacterClass);
            this.skillRank2 = this.CreateSkill(2, 2, 1, null, this.player.SelectedCharacter.CharacterClass);
            this.skillRank3 = this.CreateSkill((short)this.skillIdRank3, 3, 1, null, this.player.SelectedCharacter.CharacterClass);
            this.skillRank3.MasterDefinition.MinimumLevel = 10;
            context.Configuration.Skills.Add(this.skillRank1);
            context.Configuration.Skills.Add(this.skillRank2);
            context.Configuration.Skills.Add(this.skillRank3);
            this.addAction = new AddMasterPointAction();
        }