Example #1
0
		public BattleFighterPropty(BattleFighter fighter)
		{
			this.owner = fighter;
			this.baseProp = new RoleAProperty();
			this.buffProp = new RoleAProperty();
			this.mutiProp = new RoleAProperty();
			this.battleProp = new RoleAProperty();
			initBaseProp();
		}
Example #2
0
		public override void changeHp(int costHp, BattleFighter defencer)
		{
			defencer.changeCurHp(costHp);
		}
Example #3
0
		public override int getAttackRatioIndex(BattleFighter fighter)
		{
			return 0;
		}
Example #4
0
		public override void costFighterHp(int costHp, BattleFighter fighter)
		{
			fighter.changeCurHp(-costHp);
		}
Example #5
0
		public override int getFighterTotalHp(BattleFighter fighter)
		{
			return fighter.TotalHp;
		}
Example #6
0
		public override int getFighterCurHp(BattleFighter fighter)
		{
			return fighter.CurHp;
		}
Example #7
0
		public override bool isActiveFighter(BattleFighter fighter)
		{
			return !fighter.Dead;
		}
Example #8
0
		public HeroPoint(BattleFighter fighter, HeroColor color) : this(false)
		{
			this.fighter = fighter;
			this.inBattle = false;
			Color = color;
		}
Example #9
0
		public FighterStateManager(BattleFighter owner)
		{
			this.stateMap = new Dictionary<int, BattleFighterState>();
			this.lastStateMap = new Dictionary<int, BattleFighterState>();
		}
Example #10
0
		public override void costFighterHp(int costHp, BattleFighter fighter)
		{
			changeHp(-costHp, fighter);
		}
Example #11
0
		public override bool isActiveFighter(BattleFighter fighter)
		{
			return this.indexedHeroPoint[fighter.index].InBattle;
		}
Example #12
0
		public override void changeHp(int changeHp, BattleFighter defencer)
		{
			int _totalHp = changeValue(CurHp, changeHp, TotalHp);
			HeroCurHp = _totalHp;
		}
Example #13
0
		public virtual HeroPoint createHeroPoint(BattleFighter battleFighter, HeroColor color)
		{
			HeroPoint _newPoint = new HeroPoint(battleFighter, color);
			indexedHeroPoint[battleFighter.Index] = _newPoint;
			return _newPoint;
		}
Example #14
0
		public virtual bool isSameFighter(BattleFighter fighter)
		{
			return Index == fighter.Index;
		}
Example #15
0
		public virtual void afterDefence(BattleFighter attacker, BattleFightRecord record)
		{
			buffManager.onDefence(attacker, record);
		}