Ejemplo n.º 1
0
        public async override Task OnNavigatedTo(NavigationEventArgs e)
        {
            allMoves = await moveRepository.GetAllMoves();

            AllChargeMovesById = allMoves.ChargeMoves;
            AllQuickMovesById  = allMoves.QuickMoves;
        }
Ejemplo n.º 2
0
 private async Task EnsureCacheIsValid()
 {
     if (movesCache == null)
     {
         movesCache = await dataSource.LoadAllMovesAsync();
     }
 }
Ejemplo n.º 3
0
        public async override Task OnNavigatedTo(NavigationEventArgs e)
        {
            var pokes = pokemonsRepository.GetAllPokemons();
            var moves = moveRepository.GetAllMoves();

            allPokemonsCache = await pokemonsRepository.GetAllPokemons();

            allMovesCache = await moveRepository.GetAllMoves();
        }
Ejemplo n.º 4
0
        private void ParseMoves()
        {
            var movesSource = new MovesSource();

            _movesParser = MovesParserFactory.CreateMovesParser();
            _parsedMoves = _movesParser.Parse(movesSource.GetStringAsync().Result);
            var json = JsonUtils.ToJson(_parsedMoves);

            WriteJsonToFile(json, "moves.db");
        }
Ejemplo n.º 5
0
 //	[ReadOnly] public ComponentDataFromEntity<GroupIndexChangeRequest> hasGroupIndexChangeRequest;
 public void Execute(Entity entity, int index, ref PokemonEntityData ped, ref PokemonMoveDataEntity pokemonMoveDataEntity,
                     ref Translation translation, ref Rotation rotation, ref PhysicsVelocity velocity, ref Scale scale)
 {
     //	if (!hasGroupIndexChangeRequest.Exists(entity))	{
     if (!pokemonMoveDataEntity.isValid)
     {
         return;
     }
     if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.isValid)
     {
         if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveAngularVelocitySet.value.isValid)
         {
             float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveAngularVelocitySet.value,
                                                                          ref ped.currentStamina, deltaTime, pokemonMoveDataEntity.forward);
             velocity.Angular += realValue;
         }
         if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value.isValid)
         {
             float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(
                 ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value,
                 ref ped.currentStamina, deltaTime, pokemonMoveDataEntity.forward);
             velocity.Linear += realValue;
         }
         if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveTranslationSet.value.isValid)
         {
             float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveTranslationSet.value,
                                                                          ref ped.currentStamina, deltaTime, pokemonMoveDataEntity.forward);
             translation.Value += realValue;
         }
         if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.value.isValid)
         {
             float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.value,
                                                                          ref ped.currentStamina, deltaTime, pokemonMoveDataEntity.forward);
             rotation.Value.value += new float4 {
                 x = realValue.x, y = realValue.y, z = realValue.z, w = pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.w
             };
         }
         if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveScaleSet.isValid)
         {
             float realValue = PokemonMoves.getNextPokemonMoveAdjustment(
                 ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveScaleSet, deltaTime, ref ped.currentStamina);
             scale.Value = realValue;
         }
         pokemonMoveDataEntity.pokemonMoveAdjustmentData.isValid = pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveAngularVelocitySet.value.isValid ||
                                                                   pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value.isValid ||
                                                                   pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveTranslationSet.value.isValid ||
                                                                   pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.value.isValid;
     }
     else
     {
         pokemonMoveDataEntity.isValid = false;
     }
 }
Ejemplo n.º 6
0
    public void BattleMove(PokemonMoves moveSelected, string side)                            // the move selected gets processed and action occurs
    {
        if (side == "AttackPokemon")
        {
            int damageAttackPokemon = 0;
            int defencePokemonMaxHp = GameObject.Find("emptyPoke(Clone)").gameObject.GetComponent <BasePokemon> ().maxHP;
            int attackPokemonLevel  = player.GetComponent <Player> ().ownedPokemon [0].level;

            float power = moveSelected.power;
            int   attackStatAttackPokemon   = player.GetComponent <Player> ().ownedPokemon [0].ownedPokemon.pokemonStats.attackStat;
            int   defenceStatDefencePokemon = GameObject.Find("emptyPoke(Clone)").gameObject.GetComponent <BasePokemon> ().pokemonStats.defenceStat;

            damageAttackPokemon = Mathf.FloorToInt(((((((2 * attackPokemonLevel) / 5) + 2) * power * ((float)attackStatAttackPokemon / defenceStatDefencePokemon)) / 50) + 2) * 1);

            GameObject.Find("emptyPoke(Clone)").gameObject.GetComponent <BasePokemon> ().HP -= damageAttackPokemon; //reduces opponent damage
            float percentDamage    = (((float)damageAttackPokemon / defencePokemonMaxHp) * 100);
            float opponentBarValue = -opponentHealthBar.GetComponent <RectTransform> ().offsetMax.x;                //offest sets value to negative!!
            float newValue         = (((((100 + percentDamage) / 100) * (203)) - 203) + opponentBarValue);
            opponentHealthBar.GetComponent <RectTransform> ().offsetMax = new Vector2(-newValue, opponentHealthBar.GetComponent <RectTransform> ().offsetMax.y);

            player.GetComponent <Player> ().ownedPokemon [0].moves [0].currentPP = player.GetComponent <Player> ().ownedPokemon [0].moves [0].currentPP - 1;
            currentPP.text = player.GetComponent <Player> ().ownedPokemon [0].moves [0].currentPP.ToString();

            battleMessageText.text = player.GetComponent <Player> ().ownedPokemon [0].ownedPokemon.PName + " used " + moveSelected.Name;
            StartCoroutine(Wait(0.01f));

            DefencePokemonAttacked = false;
        }
        else if (side == "DefencePokemon")
        {
            int damageDefencePokemon = 0;
            int defencePokemonLevel  = GameObject.Find("emptyPoke(Clone)").gameObject.GetComponent <BasePokemon> ().level;
            int attackPokemonHP      = player.GetComponent <Player> ().ownedPokemon [0].ownedPokemon.HP;
            int attackPokemonMaxHp   = player.GetComponent <Player> ().ownedPokemon [0].ownedPokemon.maxHP;

            float power = moveSelected.power;
            int   attackStatDefencePokemon = GameObject.Find("emptyPoke(Clone)").gameObject.GetComponent <BasePokemon> ().pokemonStats.attackStat;
            int   defenceStatAttackPokemon = player.GetComponent <Player> ().ownedPokemon [0].ownedPokemon.pokemonStats.defenceStat;

            damageDefencePokemon = Mathf.FloorToInt(((((((2 * defencePokemonLevel) / 5) + 2) * power * ((float)attackStatDefencePokemon / defenceStatAttackPokemon)) / 50) + 2) * 1);

            player.GetComponent <Player> ().ownedPokemon [0].ownedPokemon.HP -= damageDefencePokemon;

            float percentDamage  = (((float)damageDefencePokemon / attackPokemonMaxHp) * 100);
            float playerBarValue = -playerHealthBar.GetComponent <RectTransform> ().offsetMax.x;
            float newValue       = (((((100 + percentDamage) / 100) * (203)) - 203) + playerBarValue);
            playerHealthBar.GetComponent <RectTransform> ().offsetMax = new Vector2(-newValue, playerHealthBar.GetComponent <RectTransform> ().offsetMax.y);

            battleMessageText.text = GameObject.Find("emptyPoke(Clone)").gameObject.GetComponent <BasePokemon> ().PName + " used " + moveSelected.Name;
            StartCoroutine(Wait(0.01f));
        }
    }
Ejemplo n.º 7
0
        public void AddMove(string nameMove, string idPkmn)
        {
            Pokemon pokemon = context.Pokemon.SingleOrDefault(p => p.CdPoke.ToString().Equals(idPkmn));
            Moves   move    = context.Moves.SingleOrDefault(m => m.NmMove.Equals(nameMove));

            PokemonMoves pkmnMove = new PokemonMoves()
            {
                CdPoke           = pokemon.CdPoke, CdMove = move.CdMove,
                CdMoveNavigation = move, CdPokeNavigation = pokemon
            };

            context.PokemonMoves.Add(pkmnMove);
            context.SaveChanges();
        }
Ejemplo n.º 8
0
    private int moveAdded = 0;                  //counter to make sure one move is added to the wild pokemon



    void Update()
    {
        gm = GameObject.FindGameObjectWithTag("GameManager").GetComponent <GameManager>();
        //Debug.Log (gm.allMoves [0].Name );   //debugs the move addded
        move = gm.allMoves [0];                             // move added from GameManager


        if (moveAdded == 0)
        {
            wildMoves.moves.Add(gm.allMoves [0]);                                            // adds a move from allMoves in the GM

            //wildPokemonMoves [0] = new WildPokemon ();          //added the move to the WildPokemon class!
            //wildPokemonMoves[0].moves.Add(gm.allMoves[0]);
            //gameObject.GetComponent<WildPokemonMoves>().wildPokemonMoves.Add(wildMoves);
        }

        moveAdded = 1;                          //makes sure we do not keep adding the move!

        //tackle.moves.Add (gm.allMoves [0]);

/*		pokemonName = gameObject.GetComponent<BasePokemon> ().PName;
 *
 *
 *              switch (pokemonName) {
 *
 *
 *              case "Bulbasaur":
 *                      break;
 *
 *              case "Squirtle":
 *                      Debug.Log ("Squirtle");
 *
 *                      break;
 *
 *              case "Venasaur":
 *                      Debug.Log ("Venasaur");
 *                      break;
 *
 *              default:
 *                      break;
 *
 *
 *
 *              }*/
    }
Ejemplo n.º 9
0
        private async Task <PokemonMoves> ObtainPokeMovesDataAsync(string pokemon)
        {
            var pokemonTypeData = new PokemonMoves();
            var basePokemonUrl  = Configuration["PokeApiUrl"] + "pokemon/" + pokemon;

            using (var httpClient = new HttpClient())
            {
                using (var response = await httpClient.GetAsync(basePokemonUrl))
                {
                    if (!response.IsSuccessStatusCode)
                    {
                        throw new Exception("Something went wrong when obtaining pokemon type");
                    }
                    string apiResponse = await response.Content.ReadAsStringAsync();

                    pokemonTypeData = JsonConvert.DeserializeObject <PokemonMoves>(apiResponse);
                }
            }
            return(pokemonTypeData);
        }
        private void btnAdd_Click(object sender, RoutedEventArgs e)
        {
            LearnedMoves moveToAdd    = new LearnedMoves();
            PokemonMoves selectedMove = (PokemonMoves)cmbMoveList.SelectedItem;

            moveToAdd.Id = DatabaseOperations.CurrentLearnedMoves() + 1;

            moveToAdd.PokemonId = currentPokemon.Id;
            moveToAdd.MoveId    = selectedMove.Id;
            moveToAdd.Position  = currentPokemon.LearnedMoves.Count() + 1;
            moveToAdd.CurrentPP = selectedMove.PP;

            if (DatabaseOperations.AddToLearnedMoves(moveToAdd) != 0)
            {
                MessageBox.Show("Move succesfully added");
                Close();
            }
            else
            {
                MessageBox.Show("Move failed to add");
            }
        }
Ejemplo n.º 11
0
            //	[ReadOnly] public ComponentDataFromEntity<GroupIndexChangeRequest> hasGroupIndexChangeRequest;
            public void Execute(Entity entity, int index, ref PokemonMoveEntity pokemonMoveEntity, ref PokemonMoveDataEntity pokemonMoveDataEntity,
                                ref Translation translation, ref Rotation rotation, ref PhysicsVelocity velocity, ref Scale scale)
            {
                //		if (!hasGroupIndexChangeRequest.Exists(entity)){
                if (!pokemonMoveDataEntity.isValid)
                {
                    return;
                }
                if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.isValid)
                {
                    //	Debug.Log("Doing the execute");
                    if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveAngularVelocitySet.value.isValid)
                    {
                        float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveAngularVelocitySet.value,
                                                                                     deltaTime, pokemonMoveDataEntity.forward);
                        if (pokemonMoveDataEntity.preformActionsOn)
                        {
                            velocity.Angular += realValue;
                        }
                        //		Debug.Log("Angular = "+velocity.Angular.ToString());
                    }
                    if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value.isValid)
                    {
                        float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(
                            ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value,
                            deltaTime, pokemonMoveDataEntity.forward);
                        //			Debug.Log(pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value.A.value.ToString()
                        //				+"::::"+velocity.Linear.ToString() + "::" + realValue + ":::" + pokemonMoveDataEntity.forward);

                        if (pokemonMoveDataEntity.preformActionsOn)
                        {
                            velocity.Linear += realValue;
                        }
                        //Debug.Log(pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value.A.timeLength);
                    }
                    if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveTranslationSet.value.isValid)
                    {
                        float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveTranslationSet.value,
                                                                                     deltaTime, pokemonMoveDataEntity.forward);
                        translation.Value += realValue;
                    }
                    if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.value.isValid)
                    {
                        float3 realValue = PokemonMoves.getNextPokemonMoveAdjustment(ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.value,
                                                                                     deltaTime, pokemonMoveDataEntity.forward);
                        if (pokemonMoveDataEntity.preformActionsOn)
                        {
                            rotation.Value.value += new float4 {
                                x = realValue.x, y = realValue.y, z = realValue.z, w = pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.w
                            }
                        }
                        ;
                    }
                    if (pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveScaleSet.isValid)
                    {
                        float realValue = PokemonMoves.getNextPokemonMoveAdjustment(
                            ref pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveScaleSet, deltaTime);
                        if (pokemonMoveDataEntity.preformActionsOn)
                        {
                            scale.Value = realValue;
                        }
                    }
                    pokemonMoveDataEntity.pokemonMoveAdjustmentData.isValid = pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveAngularVelocitySet.value.isValid ||
                                                                              pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveVelocitySet.value.isValid ||
                                                                              pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveTranslationSet.value.isValid ||
                                                                              pokemonMoveDataEntity.pokemonMoveAdjustmentData.pokemonMoveRotationSet.value.isValid;
                }
                else
                {
                    pokemonMoveDataEntity.isValid = false;
                }
            }

            //	}
        }
Ejemplo n.º 12
0
        /// <summary>
        /// Sets the RenderMesh of the given parameters
        /// </summary>
        /// <param name="entityManager">EntityManager</param>
        /// <param name="entity">PokemonMove Entity</param>
        /// <param name="pokemonMoveName">name of the pokemonMove</param>

        /*	public static void SetPokemonMoveRenderMesh(EntityManager entityManager,Entity entity, string pokemonMoveName)
         *      {
         *      //	Debug.Log("Pokemon/PokemonMoves/" + pokemonMoveName + "/" + pokemonMoveName);
         *              GameObject go = Resources.Load("Pokemon/PokemonMoves/"+pokemonMoveName+"/"+pokemonMoveName) as GameObject;
         *              if (go != null)
         *              {
         *                      entityManager.SetSharedComponentData(entity, new RenderMesh
         *                      {
         *                              mesh = go.GetComponent<MeshFilter>().sharedMesh,
         *                              castShadows = UnityEngine.Rendering.ShadowCastingMode.On,
         *                              material = go.GetComponent<MeshRenderer>().sharedMaterial,
         *                              receiveShadows = true
         *                      });
         *              }
         *              else Debug.LogError("Failed to load pokemon move mesh");
         *      }*/
        /// <summary>
        /// Initializes the pokemon move entity
        /// </summary>
        /// <param name="entityManager">EntityManager</param>
        /// <param name="name">name of the pokemon move</param>
        /// <param name="orgEntity">the Entity that executed the move</param>
        /// <param name="entity">the PokemonMove Entity</param>
        /// <param name="ped">PokemonEntityData</param>
        public static void ExecutePokemonMove(EntityManager entityManager, string name, ByteString30 pokemonName, Entity orgEntity, Entity entity, PokemonEntityData ped, GroupIndexSystem groupIndexSystem)
        {
            //test if a move is already being executed on the entity parent
            if (!entityManager.HasComponent <EntityChild>(orgEntity))
            {
                entityManager.AddComponentData <EntityChild>(orgEntity, new EntityChild {
                    entity = entity, isValid = true, followChild = false
                });
                if (groupIndexSystem == null)
                {
                    Debug.LogError("GroupIndexSystem is null");
                }
                Debug.Log("executing pokemon move \"" + name + "\"");
                PokemonMoveDataSpawn  pmds = getPokemonMoveDataSpawn(entityManager, name, orgEntity, ped);
                PlayerInput           pi   = entityManager.GetComponentData <PlayerInput>(orgEntity);
                PokemonMoveDataEntity pmde = GetPokemonMoveDataEntity(new ByteString30(name), ped, pi.forward);
                if (pmds.hasEntity)
                {
                    entityManager.SetComponentData(entity, new EntityParent {
                        entity = orgEntity, isValid = true, followParent = true
                    });
                    if (pmds.projectOnParentInstead)
                    {
                        //				if (pmde.isValid) Debug.Log("It be valid!");
                        entityManager.AddComponentData(orgEntity, pmde);
                        pmde.preformActionsOn = false;
                    }
                }
                CoreData cd = entityManager.GetComponentData <CoreData>(orgEntity);
                entityManager.AddComponentData <CoreData>(entity, new CoreData(new ByteString30(name), new ByteString30("PokemonMove"), cd.size, cd.scale));

                //get Pokemon's GroupIndex
                GroupIndexInfo gii = entityManager.GetComponentData <GroupIndexInfo>(orgEntity);
                gii.CurrentGroupIndex = groupIndexSystem.GetNextEmptyGroup();
                gii.Update            = true;
                entityManager.SetComponentData(orgEntity, gii);
                int a = groupIndexSystem.ExludeGroupIndexNumber(gii.CurrentGroupIndex);
                //		Debug.Log("AAAAAAAAAAAAA "+a);
                //add group index but we want this to
                gii = new GroupIndexInfo
                {
                    CurrentGroupIndex  = gii.CurrentGroupIndex,
                    OldGroupIndex      = 0,
                    OriginalGroupIndex = gii.CurrentGroupIndex,
                    Update             = true,
                };
                entityManager.AddComponentData(entity, gii);
                //add/set collider
                if (pmds.hasCollider)
                {
                    if (entityManager.HasComponent <PhysicsCollider>(entity))
                    {
                        entityManager.SetComponentData(entity, pmds.physicsCollider);
                    }
                    else
                    {
                        entityManager.AddComponentData(entity, pmds.physicsCollider);
                    }
                }
                if (pmds.hasDamping)
                {
                    if (entityManager.HasComponent <PhysicsDamping>(entity))
                    {
                        entityManager.SetComponentData(entity, pmds.physicsDamping);
                    }
                    else
                    {
                        entityManager.AddComponentData(entity, pmds.physicsDamping);
                    }
                }
                if (pmds.hasGravityFactor)
                {
                    if (entityManager.HasComponent <PhysicsGravityFactor>(entity))
                    {
                        entityManager.SetComponentData(entity, pmds.physicsGravityFactor);
                    }
                    else
                    {
                        entityManager.AddComponentData(entity, pmds.physicsGravityFactor);
                    }
                }
                if (pmds.hasMass)
                {
                    if (entityManager.HasComponent <PhysicsMass>(entity))
                    {
                        entityManager.SetComponentData(entity, pmds.physicsMass);
                    }
                    else
                    {
                        entityManager.AddComponentData(entity, pmds.physicsMass);
                    }
                }
                if (entityManager.HasComponent <PokemonMoveDataEntity>(entity))
                {
                    entityManager.SetComponentData(entity, pmde);
                }
                else
                {
                    entityManager.AddComponentData(entity, pmde);
                }
                if (pmds.hasPhysicsVelocity)
                {
                    if (entityManager.HasComponent <PhysicsVelocity>(entity))
                    {
                        entityManager.SetComponentData(entity, pmds.physicsVelocity);
                    }
                    else
                    {
                        entityManager.AddComponentData(entity, pmds.physicsVelocity);
                    }
                }
                if (entityManager.HasComponent <Translation>(entity))
                {
                    entityManager.SetComponentData(entity, pmds.translation);
                }
                else
                {
                    entityManager.AddComponentData(entity, pmds.translation);
                }
                if (entityManager.HasComponent <Rotation>(entity))
                {
                    entityManager.SetComponentData(entity, pmds.rotation);
                }
                else
                {
                    entityManager.AddComponentData(entity, pmds.rotation);
                }
                //add particle stuff
                ParticleSystemSpawnData pssd = PokemonMoves.getPokemonMoveParticleSystemData(ped.PokedexNumber, name);
                if (pssd.isValid)
                {
                    Debug.Log("detected particleSystemspawn data");
                    entityManager.AddComponentData(entity, pssd);
                }
                else
                {
                    Debug.LogWarning("ExecutePokemonMove: Failed to get ParticleSystemSpawnData!");
                }
                if (pmds.hasParticles)
                {
                    entityManager.AddComponentData(entity, new ParticleSystemRequest {
                    });
                    entityManager.AddComponentData(entity, new ParticleSystemData {
                    });
                }
                if (!entityManager.HasComponent <Scale>(entity))
                {
                    entityManager.AddComponentData <Scale>(entity, new Scale {
                        Value = 1f
                    });
                }
                else
                {
                    entityManager.SetComponentData <Scale>(entity, new Scale {
                        Value = 1f
                    });
                }
                switch (name)
                {
                case "ThunderBolt":
                    Debug.Log("Spawning ThunderBolt");
                    //set name and render mesg
                    entityManager.SetName(entity, name);
                    //entityManager.SetSharedComponentData(entity, renderMesh);
                    PokemonDataClass.SetRenderMesh(entityManager, entity, pokemonName, 1);
                    break;

                case "Tackle":
                    entityManager.SetName(entity, name);
                    break;

                default: Debug.Log("Failed to set pokemon move data for \"" + name + "\""); break;
                }
                //
                PhysicsCollider op = entityManager.GetComponentData <PhysicsCollider>(orgEntity);
                op = entityManager.GetComponentData <PhysicsCollider>(orgEntity);
                PhysicsCollider tmpA = entityManager.GetComponentData <PhysicsCollider>(entity);
                //		Debug.Log("Chaned original entities collision filter to " + op.Value.Value.Filter.GroupIndex.ToString() + " with entity index = " + tmpA.Value.Value.Filter.GroupIndex.ToString());
            }
            else
            {
                //maybe cancel but for now we do nothing
            }
        }