public void SetActionPlayerToAttack()
 {
     if (_attackWasDone)
     {
         return;
     }
     _actionPlayer = ActionPlayer.Attack;
 }
 public void SetActionPlayerToInvestigate()
 {
     if (_attackWasDone)
     {
         return;
     }
     _actionPlayer = ActionPlayer.Investigate;
 }
Esempio n. 3
0
        public ActionPlayer GetActionPlayer(ConsoleKey pressKey)
        {
            ActionPlayer pressPlayer = ActionPlayer.NoAction;

            switch (pressKey)
            {
            case ConsoleKey.LeftArrow:
                pressPlayer = ActionPlayer.PressLeft;
                break;

            case ConsoleKey.UpArrow:
                pressPlayer = ActionPlayer.PressUp;
                break;

            case ConsoleKey.RightArrow:
                pressPlayer = ActionPlayer.PressRight;
                break;

            case ConsoleKey.DownArrow:
                pressPlayer = ActionPlayer.PressDown;
                break;

            case ConsoleKey.Spacebar:
                pressPlayer = ActionPlayer.PressFire;
                break;

            case ConsoleKey.Escape:
                pressPlayer = ActionPlayer.PressExit;
                break;

            case ConsoleKey.P:
                pressPlayer = ActionPlayer.PressPause;
                break;

            case ConsoleKey.S:
                pressPlayer = ActionPlayer.PressSave;
                break;

            case ConsoleKey.L:
                pressPlayer = ActionPlayer.PressLoad;
                break;

            case ConsoleKey.Y:
                pressPlayer = ActionPlayer.PressYes;
                break;

            case ConsoleKey.N:
                pressPlayer = ActionPlayer.PressNo;
                break;

            case ConsoleKey.Enter:
                pressPlayer = ActionPlayer.PressEnter;
                break;
            }

            return(pressPlayer);
        }
Esempio n. 4
0
    public int PlayAction(int iActionId, ActionParam param)
    {
        ActionFileData data   = ConfigManager.Instance.GetActionFileData(iActionId);
        ActionPlayer   action = new ActionPlayer(iActionId, data, param, null);

        m_lstAction.Add(action);
        MessageDispatcher.Instance.BroadcastMessage(new MessageObject(ClientCustomMessageDefine.C_ACTION_START, param));
        return(action.GetInstanceID());
    }
Esempio n. 5
0
        public void inputCard(string cardId, string Login)
        {
            ActionPlayer Player = Ap.ActionPlayers.Where(o => o.Name == Login).FirstOrDefault();

            BotRoom.firstPLayerActiveCard = true;
            BotRoom.idFirstPlayerCad      = Int32.Parse(cardId);
            Clients.Caller.getboolcard(BotRoom.firstPLayerActiveCard);
            battleround(cardId, Login);
        }
Esempio n. 6
0
    public int InsertAction(int iActionId, ActionFileData data, ActionParam param, params GameObject[] affectedObjects)
    {
        List <GameObject> affectedOjectList = new List <GameObject>();

        affectedOjectList.AddRange(affectedObjects);
        ActionPlayer action = new ActionPlayer(iActionId, data, param, affectedOjectList);

        m_lstAction.Add(action);
        return(action.GetInstanceID());
    }
Esempio n. 7
0
        private IEnumerator DisableMenuInvestigationPlayerCoroutine()
        {
            yield return(new WaitUntil(() => _isDoingAnimation == false));

            _investigationPanelIsShown = false;
            _animatorCombatUpdater.Play("HidePanelInvestigationPlayer");
            yield return(new WaitUntil(() => _isDoingAnimation == false));

            _actionPlayer = ActionPlayer.None;
        }
Esempio n. 8
0
        //Группа игроков при выборе комнаты
        public void waitPlayer(string group, string Login)
        {
            Groups.Add(Context.ConnectionId, group);
            ActionPlayer Player = Ap.ActionPlayers.Where(o => o.Name == Login).FirstOrDefault();

            if (Player.idRoom != 0)
            {
                backInTableRoom(Login);
            }
        }
Esempio n. 9
0
        static void ActivateMarker(ActionPlayer player, Vehicle vehicle, NavigationEnvironment environment, SlamController slam, int markerId, IServiceProvider provider)
        {
            var smartObject = environment.Landmarks.FirstOrDefault(landmark => landmark.MarkerId == markerId);

            if (smartObject == null)
            {
                return;
            }

            ActivateMarker(player, vehicle, environment, slam, smartObject, provider);
        }
Esempio n. 10
0
    private void OnPaused()
    {
        m_bIsPaused = true;
        ActionPlayer action = ActionManager.Instance.GetAction(m_ActionId);

        if (null == action || action.IsFinish())
        {
            return;
        }
        action.Pause();
    }
        private IEnumerator DisableMenuCombatCoroutine()
        {
            yield return(new WaitUntil(() => _isDoingAnimation == false));

            _animatorCombatUpdater.Play("HidePanelCombatPlayer");
            yield return(new WaitForEndOfFrame());

            yield return(new WaitUntil(() => _isDoingAnimation == false));

            _attackWasDone = false;
            _actionPlayer  = ActionPlayer.None;
        }
Esempio n. 12
0
        //Отправка в чат
        public void send(string name, string message)
        {
            ActionPlayer Player = Ap.ActionPlayers.Where(o => o.Name == name).FirstOrDefault();

            if (Player.idRoom == 0)
            {
                Clients.Group("WaitPlayer").broadcastMessage(name, message);
            }
            else
            {
                Clients.Group(Player.idRoom.ToString()).broadcastMessage(name, message);
            }
        }
Esempio n. 13
0
 public void MovePlayer(ActionPlayer action)
 {
     try
     {
         if (_gameField.Player != null)
         {
             _gameField.Player.Move(action);
         }
     }
     catch (Exception ex)
     {
         File.AppendAllText(ConstantValue.PATH_LOG, ex.Message + Environment.NewLine);
     }
 }
Esempio n. 14
0
    public static ActionPack New()
    {
        GameObject pack = new GameObject {
            name = "ActionPack"
        };
        ActionPack   actionpack = pack.AddComponent <ActionPack>();
        ActionPlayer player     = pack.AddComponent <ActionPlayer>();
        ActionList   list       = pack.AddComponent <ActionList>();

        actionpack.PackPlayer  = player;
        actionpack.PackActions = list;
        actionpack.ActionName  = "动作套件";
        return(actionpack);
    }
Esempio n. 15
0
    public static LoopAction NewObject()
    {
        GameObject pack = new GameObject {
            name = "Loop"
        };
        LoopAction   actionpack = pack.AddComponent <LoopAction>();
        ActionPlayer player     = pack.AddComponent <ActionPlayer>();
        ActionList   list       = pack.AddComponent <ActionList>();

        actionpack.PackPlayer  = player;
        actionpack.PackActions = list;
        actionpack.name        = "循环";
        return(actionpack);
    }
Esempio n. 16
0
        public void getActiveMomentCard(string Login)
        {
            ActionPlayer    Player = Ap.ActionPlayers.Where(o => o.Name == Login).FirstOrDefault();
            var             idRoom = Player.idRoom;
            ClientRoomModel model  = Rb.ClientRoomModels.Where(o => o.id == Player.idRoom).FirstOrDefault();

            if (model.nameGod == Player.Name)
            {
                Clients.Caller.getMoment(model.firstPLayerActiveCard);
            }
            else
            {
                Clients.Caller.getMoment(model.secondPLayerActiveCard);
            }
        }
Esempio n. 17
0
    private void Start()
    {
        speedCaracol = 2f;

        lifeCaracol = 10;

        player = GameObject.FindGameObjectWithTag("Player").GetComponent <ActionPlayer>();

        transformCaracol = this.transform;
        rbCaracol        = GetComponent <Rigidbody2D>();
        SpriteRenderer renderCaracol = GetComponent <SpriteRenderer>();

        widthCaracol  = renderCaracol.bounds.extents.x;
        heightCaracol = renderCaracol.bounds.extents.y;
    }
Esempio n. 18
0
        //Описание битвы
        public void battleround(string cardId, string Login)
        {
            ActionPlayer    Player = Ap.ActionPlayers.Where(o => o.Name == Login).FirstOrDefault();
            var             idRoom = Player.idRoom;
            ClientRoomModel model  = Rb.ClientRoomModels.Where(o => o.id == Player.idRoom).FirstOrDefault();

            //Если разыграын обе карты
            if ((model.firstPLayerActiveCard == true) && (model.secondPLayerActiveCard == true))
            {
                CardModel card1 = Cb.CardModels.Where(o => o.number == model.idFirstPlayerCad).FirstOrDefault();
                CardModel card2 = Cb.CardModels.Where(o => o.number == model.idSecondPlayerCad).FirstOrDefault();

                var win = Winner(card1, card2, model);

                switch (win)
                {
                case 0:
                    Clients.Group(idRoom.ToString()).resultbattle("Раунд отложен", model.vPointFerstPlayer, model.vPointSecondPlayer);
                    break;

                case 1:
                    Clients.Group(idRoom.ToString()).resultbattle("Раунд Победа синих", model.vPointFerstPlayer, model.vPointSecondPlayer);
                    break;

                case 2:
                    Clients.Group(idRoom.ToString()).resultbattle("Раунд Победа красных", model.vPointFerstPlayer, model.vPointSecondPlayer);
                    break;

                case 3:
                    Clients.Group(idRoom.ToString()).resultbattle("Конец игры: Победа синих");
                    Clients.Group(idRoom.ToString()).upDateRoom();
                    return;

                case 4:
                    Clients.Group(idRoom.ToString()).resultbattle("Конец игры: Победа красных");
                    Clients.Group(idRoom.ToString()).upDateRoom();
                    return;

                case 5:
                    Clients.Group(idRoom.ToString()).resultbattle("Конец игры: ничья");
                    Clients.Group(idRoom.ToString()).upDateRoom();
                    return;

                default:
                    break;
                }
            }
        }
Esempio n. 19
0
        public ActionResult CreatedRoom()
        {
            //Проверка авторизации
            if (Request.Cookies["Login"] == null)
            {
                return(RedirectToAction("Register", "Account"));
            }

            currentUser = Request.Cookies["Login"].Value;

            ActionPlayer player = Ap.ActionPlayers.Where(o => o.Name == currentUser).FirstOrDefault();

            ClientRoomModel model = Rb.ClientRoomModels.Where(o => o.id == player.idRoom).FirstOrDefault();

            return(View(model));
        }
Esempio n. 20
0
        public void init(string Login)
        {
            BotRoom.vPointFerstPlayer      = 0;
            BotRoom.vPointSecondPlayer     = 0;
            BotRoom.delayedRound           = 0;
            BotRoom.P1bonusLegate          = 0;
            BotRoom.P2bonusLegate          = 0;
            BotRoom.P1bonusGeneral         = 0;
            BotRoom.P2bonusGeneral         = 0;
            BotRoom.P1bonusSpook           = 0;
            BotRoom.P2bonusSpook           = 0;
            BotRoom.firstPLayerActiveCard  = false;
            BotRoom.secondPLayerActiveCard = false;
            ActionPlayer Player = Ap.ActionPlayers.Where(o => o.Name == Login).FirstOrDefault();

            BotPlayer.ColorTeam = "K";
            BotCard.Add("0");
            BotCard.Add("1");
            BotCard.Add("2");
            BotCard.Add("3");
            BotCard.Add("4");
            BotCard.Add("5");
            BotCard.Add("6");
            BotCard.Add("7");
            Player.ColorTeam = "С";
            PlayerCard.Add("0");
            PlayerCard.Add("1");
            PlayerCard.Add("2");
            PlayerCard.Add("3");
            PlayerCard.Add("4");
            PlayerCard.Add("5");
            PlayerCard.Add("6");
            PlayerCard.Add("7");
            BotRoom.name             = "BotGame";
            BotRoom.nameFirstPlayer  = Login;
            BotRoom.nameSecondPlayer = "BotPlayer";
            BotRoom.numberRound      = 0;
            Ap.SaveChanges();
            Clients.Caller.generatedTeam(Player.ColorTeam);
            Thread thread1 = new Thread(mythread1);

            thread1.Name = "BotThread";
            thread1.Start();
        }
Esempio n. 21
0
    public void startMe(int _pkmn, GameObject myself, Vector3 curs_pos, 
                GameObject player)
    {
        whichAction = "HALT_INIT";
        subactions = new Dictionary<string, float>();
        envir_info = new Dictionary<string, float>();
        envir_objects = new Dictionary<string, GameObject>();
        init_pos = player.transform.position;
        self_ref = myself;
        image_ref = transform.Find("Image").gameObject;
        player_ref = player;
        map_ref = GameObject.FindGameObjectsWithTag("World_Map")[0];
        maphandler_script = map_ref.GetComponent<MapHandler>();
        maphandle = maphandler_script.Map;
        player_action_script = player.GetComponent<ActionPlayer>();
        player_coll =  (CapsuleCollider)
                    player.GetComponentInChildren<CapsuleCollider>();
        coll = (CapsuleCollider) GetComponent<Collider>();
        pkmn = _pkmn;
        image_rnd = image_ref.GetComponent<Renderer>();
        default_image_scale = new Vector3(1.0f, 1.3f, 1.0f);

        image_rnd.enabled = false;

        if (magn(init_pos-curs_pos, false, 2) >
                        player_action_script.max_throw_dist) {
            Debug.Log(init_pos.ToString()+" -> "+curs_pos.ToString()+
                            ": Pokemon throwing distance too far.");
            whichAction = "KILL";
            return;
        }
        dirvecs.Add(new Vector3(0.0f,0.0f,maphandler_script.scale));
        dirvecs.Add(new Vector3(maphandler_script.scale,0.0f,0.0f));
        dirvecs.Add(new Vector3(0.0f,0.0f,-maphandler_script.scale));
        dirvecs.Add(new Vector3(-maphandler_script.scale,0.0f,0.0f));

        image_rnd.material.SetColor("_TintColor", Color.grey);
        if (maphandle.reserveTile(curs_pos, self_ref)) {
            initMe();
            throwMe(player, curs_pos);
        } else {
            whichAction = "KILL";
        }
    }
Esempio n. 22
0
        public ActionResult ClientRoom(RegisterModel model)
        {
            if (Request.Cookies["Login"] != null)
            {
                return(RedirectToAction("Register", "Account"));
            }

            foreach (var b in Ap.ActionPlayers)
            {
                if (b.Name == model.Login)
                {
                    return(RedirectToAction("Register", "Account"));
                }
            }

            foreach (RegisterModel b in db.RegisterModels)
            {
                //Добавляем нового пользователя в систему
                if (model.Login == b.Login && model.Password == b.Password)
                {
                    if (Request.Cookies[b.Login] != null)
                    {
                        return(RedirectToAction("Register", "Account"));
                    }

                    HttpCookie cookie = new HttpCookie("Login", b.Login);
                    cookie.Expires = DateTime.Now.AddHours(1);
                    Response.Cookies.Add(cookie);

                    ActionPlayer player = new ActionPlayer();

                    player.Name      = model.Login;
                    player.outPlauer = false;
                    Ap.ActionPlayers.Add(player);
                    Ap.SaveChanges();

                    ViewBag.Message = Ap.ActionPlayers;

                    return(RedirectToAction("ClientRoom", "Play"));
                }
            }
            return(RedirectToAction("Register", "Account"));
        }
    public AbstractActionFrame(ActionPlayer action, ActionFrameData data)
    {
        m_ActionPlayer     = action;
        m_FrameData        = data;
        m_lstTargetObjects = new List <GameObject>();

        if (data.TargetIDs == null)
        {
            Debuger.LogWarning("No Target ID in ActionFrameData at time: " + data.Time.ToString());
            return;
        }

        Dictionary <int, GameObject> allObjects = m_ActionPlayer.GetTargetObjects();

        foreach (int index in data.TargetIDs)
        {
            if (allObjects.ContainsKey(index))
            {
                m_lstTargetObjects.Add(allObjects[index]);
            }
            else if (index > 10000010)
            {
                Debuger.LogWarning(("<color=orange>" + (EActionFrameType)data.Type).ToString() + "</color> Affected GameObject Not Found, ID: " + index.ToString());
            }
            else if (index > 10000000 && index <= 10000010)
            {
                if (!allObjects.ContainsKey(10000001) && !allObjects.ContainsKey(10000002))
                {
                    PlayerCharacter player = PlayerManager.Instance.GetPlayerInstance();
                    if (player != null)
                    {
                        CharTransformData charData   = (CharTransformData)(player.GetTransformData());
                        GameObject        charObject = charData.GetGameObject();
                        m_lstTargetObjects.Add(charObject);
                    }
                }
            }
            else
            {
                Debuger.Log("Need Generated Object, ID: : " + index.ToString());
            }
        }
    }
Esempio n. 24
0
    private void Update()
    {
        if (!m_bPlay)
        {
            return;
        }

        ActionPlayer action = ActionManager.Instance.GetAction(m_ActionId);

        if (null == action || action.IsFinish())
        {
            m_bPlay = false;
            Repaint();
            return;
        }

        m_fAniTimeValue = action.GetActionRunTime();
        Repaint();
    }
        public void SelectEnemy(int index)
        {
            if (_actionPlayer == ActionPlayer.None)
            {
                return;
            }
            else if (_actionPlayer == ActionPlayer.Investigate)
            {
                EnableMenuInvestigationPlayer(index);
            }
            else if (_actionPlayer == ActionPlayer.Attack && CombatTurnManager.Instance.
                     EnemiesAlive[index] == true)
            {
                _attackWasDone = true;
                DisableMenuInvestigationPlayerAndCombat(index);
            }

            _actionPlayer = ActionPlayer.None;
        }
Esempio n. 26
0
        private ActionPlayer[] GetPermitActions()
        {
            ActionPlayer[] actionsEnemy = new ActionPlayer[ConstantValue.NUM_DIRECTION];
            Direction      preDirection = DirectionTank;

            for (int numDirection = 0; numDirection < actionsEnemy.Length; numDirection++)
            {
                if (IsPermitMove())
                {
                    actionsEnemy[numDirection] = GameManager.GetActionByDirection(DirectionTank);
                }

                DirectionTank = GameManager.ChangeDirectionEnemy(DirectionTank);
            }

            DirectionTank = preDirection;

            return(actionsEnemy);
        }
Esempio n. 27
0
        public ActionResult Contact()


        {
            if (Request.Cookies["Login"] != null)
            {
                string       str    = Request.Cookies["Login"].Value;
                ActionPlayer Player = Ap.ActionPlayers.Where(o => o.Name == str).FirstOrDefault();
                if (Player != null)
                {
                    if (Player.outPlauer == false)
                    {
                        return(RedirectToAction("ClientRoom", "Play"));
                    }
                }

                if (Player != null)
                {
                    Ap.ActionPlayers.Remove(Player);
                    Ap.SaveChanges();
                }

                Request.Cookies["Login"].Expires = DateTime.Now.AddDays(-1);
                Response.Cookies.Add(Request.Cookies["Login"]);
            }

            ViewBag.Message = "Контакты владельца:";
            ViewBag.Base    = db.RegisterModels;
            string ip = HttpContext.Request.UserHostAddress;

            ViewBag.ip = ip;
            string referrer = HttpContext.Request.UrlReferrer == null ? "" : HttpContext.Request.UrlReferrer.AbsoluteUri;

            ViewBag.referrer = referrer;
            string user_agent = HttpContext.Request.UserAgent;

            ViewBag.agent = user_agent;

            ViewBag.Ap = Ap.ActionPlayers;

            return(View());
        }
    public AbstractActionFrame(ActionPlayer action, ActionFrameData data)
    {
        m_ActionPlayer = action;
        m_FrameData = data;
        m_lstTargetObjects = new List<GameObject>();

        if (data.TargetIDs == null)
        {
            Debuger.LogWarning("No Target ID in ActionFrameData at time: " + data.Time.ToString());
            return;
        }

        Dictionary<int, GameObject> allObjects = m_ActionPlayer.GetTargetObjects();
        foreach (int index in data.TargetIDs)
        {
            if (allObjects.ContainsKey(index))
            {
                m_lstTargetObjects.Add(allObjects[index]);
            }
            else if (index > 10000010)
            {
                Debuger.LogWarning(("<color=orange>" + (EActionFrameType)data.Type).ToString() + "</color> Affected GameObject Not Found, ID: " + index.ToString());
            }
            else if (index > 10000000 && index <= 10000010)
            {
                if (!allObjects.ContainsKey(10000001) && !allObjects.ContainsKey(10000002))
                {
                    PlayerCharacter player = PlayerManager.Instance.GetPlayerInstance();
                    if (player != null)
                    {
                        CharTransformData charData = (CharTransformData)(player.GetTransformData());
                        GameObject charObject = charData.GetGameObject();
                        m_lstTargetObjects.Add(charObject);
                    }
                }
            }
            else
            {
                Debuger.Log("Need Generated Object, ID: : " + index.ToString());
            }
        }
    }
Esempio n. 29
0
        public void DoNoArgsNoResponse_Example()
        {
            ActionPlayer playerVoid = new ActionPlayer("System.Void AssemblyToProcess.SomeClient::DoNoArgsNoResponse()", (IRequestIdentifier)null);

            playerVoid.StartInvocation();
            switch (playerVoid.DetermineTestMode())
            {
            case TestModes.NoMock:
                playerVoid.CallOriginal(new Action(this.DoNoArgsNoResponse_ExampleClone));
                break;

            case TestModes.Record:
                playerVoid.Record(new Action(this.DoNoArgsNoResponse_ExampleClone));
                break;

            case TestModes.Play:
                playerVoid.Play();
                break;
            }
        }
Esempio n. 30
0
        //присоединиться к комнате
        public void joinRoomGroup(string user, string idroom)
        {
            var currentUser = user;

            ActionPlayer    player        = Ap.ActionPlayers.Where(o => o.Name == currentUser).FirstOrDefault();
            int             integerIdRoom = Int32.Parse(idroom);
            ClientRoomModel model         = Rb.ClientRoomModels.Where(o => o.id == integerIdRoom).FirstOrDefault();

            if (model.numberPlayer < 2)
            {
                player.idRoom = Int32.Parse(idroom);
                Ap.SaveChanges();
                model.nameSecondPlayer = player.Name;
                model.numberPlayer    += 1;
                Rb.SaveChanges();
                Clients.OthersInGroup("WaitPlayer").UpDateTableRoom();
                Clients.Caller.upDateRoom();
                Clients.Group(idroom).upDateRoom();
            }
        }
        public static void ChangeActionEnemy(ref ActionPlayer action)
        {
            switch (action)
            {
            case ActionPlayer.PressRight:
                action = ActionPlayer.PressUp;
                break;

            case ActionPlayer.PressLeft:
                action = ActionPlayer.PressDown;
                break;

            case ActionPlayer.PressUp:
                action = ActionPlayer.PressLeft;
                break;

            case ActionPlayer.PressDown:
                action = ActionPlayer.PressRight;
                break;
            }
        }
Esempio n. 32
0
 public void SelectEnemy(int index)
 {
     if (_actionPlayer == ActionPlayer.None)
     {
         return;
     }
     else if (_actionPlayer == ActionPlayer.Investigate)
     {
         EnableMenuInvestigationPlayer(index);
     }
     else if (_actionPlayer == ActionPlayer.Attack)
     {
         if (_investigationPanelIsShown)
         {
             DisableMenuInvestigationPlayer();
         }
         CombatTurnManager.Instance.DamageEnemy(index);
         _attackWasDone = true;
         _actionPlayer  = ActionPlayer.None;
     }
 }
 public ChangeColorFrame(ActionPlayer action, ActionFrameData data):base(action,data){
     color_config = m_FrameData.Vector3Frame;
 }
Esempio n. 34
0
 public PlayAudioFrame(ActionPlayer action, ActionFrameData data) : base(action, data)
 {
     m_FrameConfig = m_FrameData.PlayAudioFrame;
 }
 public Runtime_AttackExecFrame(ActionPlayer action, ActionFrameData data)
     : base(action, data)
 {
     m_FrameConfig = m_FrameData.Runtime_AttackExec;
 }
    public static AbstractActionFrame CreateActionFrame(ActionPlayer action, ActionFrameData data)
    {
        AbstractActionFrame actionFrame = null;

        if (null == data)
        {
            return actionFrame;
        }

        switch ((EActionFrameType)data.Type)
        {
            case EActionFrameType.ShakeCamera:
                actionFrame = new ShakeCameraFrame(action, data);
                break;
            case EActionFrameType.MoveCamera:
                actionFrame = new MoveCameraFrame(action, data);
                break;
            case EActionFrameType.PlayAudio:
                actionFrame = new PlayAudioFrame(action, data);
                break;
            case EActionFrameType.StopAudio:
                actionFrame = new StopAudioFrame(action, data);
                break;
            case EActionFrameType.AddNpc:
                actionFrame = new AddNpcFrame(action, data);
                break;
            case EActionFrameType.MoveObject:
                actionFrame = new MoveTransformFrame(action, data);
                break;
            case EActionFrameType.EnableObject:
                actionFrame = new EnableObjFrame(action, data);
                break;
            case EActionFrameType.EnableMeshRender:
                actionFrame = new EnableMeshRenderFrame(action, data);
                break;
            case EActionFrameType.ChangeColor:
                actionFrame = new ChangeColorFrame(action, data);
                break;
            case EActionFrameType.Runtime_CreateEffect:
                actionFrame = new Runtime_CreateEffectFrame(action, data);
                break;
            case EActionFrameType.Runtime_MoveEffect:
                actionFrame = new Runtime_MoveEffectFrame(action, data);
                break;
            case EActionFrameType.AddStateEffect:
                actionFrame = new AddStateEffectFrame(action, data);
                break;
            case EActionFrameType.Runtime_RemoveEffect:
                actionFrame = new Runtime_RemoveEffectFrame(action, data);
                break;
            case EActionFrameType.Runtime_AddUI:
                actionFrame = new AddUIFrame(action, data);
                break;
            case EActionFrameType.Runtime_RemoveUI:
                actionFrame = new RemoveUIFrame(action, data);
                break;
            case EActionFrameType.MoveChar:
                actionFrame = new MoveCharFrame(action, data);
                break;
            case EActionFrameType.EntityPlayAnimation:
                actionFrame = new EntityPlayAnimFrame(action, data);
                break;
            case EActionFrameType.AnimChar:
                actionFrame = new AnimCharFrame(action, data);
                break;
            case EActionFrameType.RotateChar:
                actionFrame = new RotateCharFrame(action, data);
                break;
            case EActionFrameType.RotateCamera:
                actionFrame = new RotateCameraFrame(action, data);
                break;
            case EActionFrameType.ObjTransform:
                actionFrame = new ObjectTransformFrame(action, data);
                break;
            case EActionFrameType.FuncMethod:
                actionFrame = new FuncMethodFrame(action, data);
                break;
        }
        return actionFrame;
    }
Esempio n. 37
0
	public RemoveUIFrame(ActionPlayer action, ActionFrameData data)
		: base(action, data)
	{
		m_FrameConfig = m_FrameData.RemoveUIFrame;
	}
 public Runtime_MoveEffectFrame(ActionPlayer action, ActionFrameData data) : base(action, data)
 {
     m_bIsTrigger = false;
     m_FrameConfig = m_FrameData.Runtime_MoveEffect;
 }
Esempio n. 39
0
 public FuncMethodFrame(ActionPlayer action, ActionFrameData data)
     : base(action, data)
 {
     m_Config = m_FrameData.FuncMethodFrame;
 }
 public EntityPlayAnimFrame(ActionPlayer action, ActionFrameData data)
     : base(action, data)
 {
     m_FrameConfig = m_FrameData.EntityPlayAnim;
 }
Esempio n. 41
0
 public EnableObjFrame(ActionPlayer action, ActionFrameData data):base(action,data){
     m_Config = m_FrameData.BoolFrame;
 }
Esempio n. 42
0
	public AddUIFrame(ActionPlayer action, ActionFrameData data)
		: base(action, data)
	{
		m_FrameConfig = m_FrameData.AddUIFrame;
	}
Esempio n. 43
0
 public AnimCharFrame(ActionPlayer action, ActionFrameData data)
     : base(action, data)
 {
     m_Config = m_FrameData.AnimcharFrame;
 }
 public ChangeTextureFrame(ActionPlayer action, ActionFrameData data):base(action,data){
     texture_Config = m_FrameData.StringFrame;
 }
Esempio n. 45
0
    //private float m_fTickTime;

    public MoveCameraFrame(ActionPlayer action, ActionFrameData data)
        : base(action, data)
    {
        m_Config = m_FrameData.MoveCameraFrame;
    }
Esempio n. 46
0
        private void GameOver(ActionPlayer actionPlayer, GameTime gameTime)
        {
            switch (actionPlayer)
            {
                case ActionPlayer.Player1:
                    _messageP1 = "WIN !";
                    _messageP2 = "LOSE !";
                    break;
                case ActionPlayer.Player2:
                    _messageP2 = "WIN !";
                    _messageP1 = "LOSE !";
                    break;
                default:
                    break;
            }

            _messageOpacity = 1;
            _gameOver = true;
            _gameOverTime = gameTime.TotalGameTime;
        }
Esempio n. 47
0
        private void GoalScored(ActionPlayer actionPlayer)
        {
            if (!_gameOver)
            {
                switch (actionPlayer)
                {
                    case ActionPlayer.Player1:
                        _player1Score++;
                        _p1ScoreOpacity = 1;
                        break;
                    case ActionPlayer.Player2:
                        _player2Score++;
                        _p2ScoreOpacity = 1;
                        break;
                    default:
                        Debug.Assert(false, "Unexpected enumeration value");
                        break;
                }

                _messageP1 = "GOAL!";
                _messageP2 = "GOAL!";
                _messageOpacity = 1;
            }

            InitialisePuckToStartingConditions();
        }
 public Runtime_CreateEffectFrame(ActionPlayer action, ActionFrameData data) : base(action, data)
 {
     m_FrameConfig = m_FrameData.Runtime_CreateEffect;
 }
 public RotateCameraFrame(ActionPlayer action, ActionFrameData data)
     : base(action, data)
 {
     m_Config = m_FrameData.RotCameraFrame;
 }
 public ObjectTransformFrame(ActionPlayer action, ActionFrameData data)
     : base(action, data)
 {
     m_Config = m_FrameData.ObjTransformFrame;
 }