Esempio n. 1
0
        private Kimboko GetNewKimboko(SpawnAbilityEventInfo spawnInfo)
        {
            Kimboko kimboko = null;

            switch (spawnInfo.spawnUnitType)
            {
            case UNITTYPE.X:
                KimbokoXFactory kimbokoXFac = new KimbokoXFactory();
                kimboko = kimbokoXFac.CreateKimboko(spawnInfo.spawnIndexID, spawnInfo.spawnerPlayer);
                break;

            case UNITTYPE.Y:
                KimbokoYFactory kimbokoYFac = new KimbokoYFactory();
                kimboko = kimbokoYFac.CreateKimboko(spawnInfo.spawnIndexID, spawnInfo.spawnerPlayer);
                break;

            case UNITTYPE.Z:
                KimbokoZFactory kimbokoZFac = new KimbokoZFactory();
                kimboko = kimbokoZFac.CreateKimboko(spawnInfo.spawnIndexID, spawnInfo.spawnerPlayer);
                break;

            case UNITTYPE.COMBINE:
                break;

            case UNITTYPE.FUSION:
                break;

            default:
                break;
            }

            return(kimboko);
        }
Esempio n. 2
0
 public ISpawnCommand(SpawnAbilityEventInfo spawnInfo, GameObject kimbokoGO, IGame game)
 {
     logInsert      = true;
     this.spawnInfo = spawnInfo;
     this.kimbokoGO = kimbokoGO;
     this.game      = game;
 }
Esempio n. 3
0
 public ISpawnCombineCommand(Kimboko spawnedKimboko, SpawnAbilityEventInfo spawnInfo, Kimboko combiner, IGame game)
 {
     logInsert           = true;
     this.combiner       = combiner;
     this.game           = game;
     this.spawnInfo      = spawnInfo;
     this.spawnedKimboko = spawnedKimboko;
 }