コード例 #1
0
ファイル: Material.cs プロジェクト: Kalasen/Adventurer
 public Material(Material m)
 {
     this.boilPoint = m.boilPoint;
     this.meltPoint = m.meltPoint;
     this.density = m.density;
     this.moleculeList = m.moleculeList;
     this.name = m.name;
 }
コード例 #2
0
ファイル: Tile.cs プロジェクト: Kalasen/Adventurer
 public Tile(Material m)
 {
     this.fixtureLibrary = new List<Fixture>();
     this.material = m;
     if (m.density < 1.5f) //If not too dense
     {
         isPassable = true;
     }
 }
コード例 #3
0
ファイル: Tile.cs プロジェクト: Kalasen/Adventurer
 public Tile(bool passable, Material mat, int image, bool roomable, bool transparent)
 {
     this.itemList = new List<Item>();
     this.scentIdentifier = new List<string>();
     this.scentMagnitude = new List<int>();
     this.fixtureLibrary = new List<Fixture>();
     this.temperature = ROOMTEMP; //20 Celsius = 68 Fahrenheit
     this.isPassable = passable;
     material = mat;
     tileImage = image;
     isRoomable = roomable;
     isTransparent = transparent;
     hasBeenSeen = false;
     adjacentToRoomN = 0;
 }