コード例 #1
0
        /// <summary>
        ///
        /// </summary>
        public virtual void JoinFight(AbstractFight fight, FightTeam team)
        {
            BuffManager  = new BuffEffectManager(this);
            StateManager = new FighterStateManager(this);
            SpellManager = new SpellCastManager();

            DeclaredDead = false;
            Orientation  = 1;
            Skin         = SkinBase;
            SkinSize     = SkinSizeBase;
            UsedAP       = 0;
            UsedMP       = 0;

            Fight = fight;

            Team      = team;
            TurnReady = false;
            TurnPass  = false;

            Team.AddFighter(this);
            Team.AddUpdatable(this);
            Team.AddHandler(Dispatch);

            if (Life < 1)
            {
                Life = 1;
            }

            if (Fight.State == FightStateEnum.STATE_PLACEMENT)
            {
                SetCell(Team.FreePlace);
            }

            SetChatChannel(ChatChannelEnum.CHANNEL_TEAM, () => Team.Dispatch);
            StartAction(GameActionTypeEnum.FIGHT);
        }
コード例 #2
0
        /// <summary>
        /// 
        /// </summary>
        public virtual void JoinFight(AbstractFight fight, FightTeam team)
        {
            BuffManager = new BuffEffectManager(this);
            StateManager = new FighterStateManager(this);
            SpellManager = new SpellCastManager();

            DeclaredDead = false;
            Orientation = 1;
            Skin = SkinBase;
            SkinSize = SkinSizeBase;
            UsedAP = 0;
            UsedMP = 0;

            Fight = fight;

            Team = team;
            TurnReady = false;
            TurnPass = false;

            Team.AddFighter(this);
            Team.AddUpdatable(this);
            Team.AddHandler(Dispatch);

            if (Life < 1)
                Life = 1;

            if(Fight.State == FightStateEnum.STATE_PLACEMENT)
                SetCell(Team.FreePlace);

            SetChatChannel(ChatChannelEnum.CHANNEL_TEAM, () => Team.Dispatch);
            StartAction(GameActionTypeEnum.FIGHT);
        }