Ejemplo n.º 1
0
 public static void clearAllPower()
 {
     for (uint c = 0; c < StageScript.cols.Length; ++c)
     {
         for (uint r = 0; r < StageScript.rows.Length; ++r)
         {
             powerSlots[c, r].Clear();
             StageScript.colorTile(HeroType.NONE, c, r);
         }
     }
 }
Ejemplo n.º 2
0
    public static void removePower(HeroType type, uint posX, uint posY)
    {
        powerSlots [posX, posY].Remove(type);

        int count = powerSlots [posX, posY].Count;

        if (count == 0)
        {
            StageScript.colorTile(HeroType.NONE, posX, posY);
        }
        else
        {
            StageScript.colorTile(powerSlots [posX, posY][count - 1], posX, posY);
        }
    }
Ejemplo n.º 3
0
 public static void assignPower(HeroType type, uint posX, uint posY)
 {
     powerSlots [posX, posY].Add(type);
     StageScript.colorTile(type, posX, posY);
 }