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