示例#1
0
 //0 = heat, 1 = cold, 2 = death, 3 = life, 4 = none
 public void setTilesEnergy(int energyValue)
 {
     if (energyValue >= 0 && energyValue <= 4)
     {
         thisTilesEnergy = (tileEnergy)energyValue;
     }
     else
     {
         thisTilesEnergy = (tileEnergy)4;
     }
 }
示例#2
0
 public void copyTile(oldTile tileToCopy)
 {
     this.thisTilesEnergy = tileToCopy.thisTilesEnergy;
     this.thisTilesType   = tileToCopy.thisTilesType;
     this.passable        = tileToCopy.passable;
     this.tileRowNum      = tileToCopy.tileRowNum;
     this.tileColumnNum   = tileToCopy.tileColumnNum;
     this.worldPos        = tileToCopy.worldPos;
     this.gridH           = tileToCopy.gridH;
     this.gridW           = tileToCopy.gridW;
     this.gridIndex       = tileToCopy.gridIndex;
 }