Пример #1
0
        public void UpdateActionPoint(ActableGridObject actable)
        {
            if (!_isUsing)
            {
                return;
            }
            var message = new BattleSceneUpdateActionPointMessage();

            message.obj            = StreamableFactory.CreateBattleSceneObject(actable);
            message.newActionPoint = actable.ActionPoint;
            _connection.SendMessage(message);
        }
Пример #2
0
        public void DisplayActableObjectMove(ActableGridObject actable, BattleMapDirection direction, bool stairway)
        {
            if (!_isUsing)
            {
                return;
            }
            var message = new BattleSceneDisplayActableObjectMovingMessage();

            message.obj       = StreamableFactory.CreateBattleSceneObject(actable);
            message.direction = direction;
            message.stairway  = stairway;
            _connection.SendMessage(message);
        }
Пример #3
0
        public void DisplayTakeExtraMovePoint(ActableGridObject actable, SkillType usingSkillType)
        {
            if (!_isUsing)
            {
                return;
            }
            var message = new BattleSceneDisplayTakeExtraMovePointMessage();

            message.obj           = StreamableFactory.CreateBattleSceneObject(actable);
            message.moveSkillType = StreamableFactory.CreateSkillTypeDescription(usingSkillType);
            message.newMovePoint  = actable.MovePoint;
            _connection.SendMessage(message);
        }
Пример #4
0
        public void ChangeTurn(ActableGridObject actable)
        {
            if (!_isUsing)
            {
                return;
            }
            _canOperate = actable.CharacterRef.Controller == _owner;
            var message = new BattleSceneChangeTurnMessage();

            message.canOperate = _canOperate;
            message.gridObj    = StreamableFactory.CreateBattleSceneObject(actable);
            _connection.SendMessage(message);
        }