-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for GT5u reactor components.
- Loading branch information
1 parent
53b758a
commit e8edd99
Showing
26 changed files
with
809 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package Ic2ExpReactorPlanner; | ||
|
||
/** | ||
* Represents a 180k Helium Coolant Cell. | ||
* @author Brian McCloud | ||
*/ | ||
public class CoolantCell180kHelium extends ReactorComponent { | ||
|
||
/** | ||
* The filename for the image to show for the component. | ||
*/ | ||
private static final String imageFilename = "gt.180k_Helium_Coolantcell.png"; | ||
|
||
public static final MaterialsList MATERIALS = new MaterialsList(3, CoolantCell60kHelium.MATERIALS, 6, "Tin Plate"); | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public CoolantCell180kHelium() { | ||
setImage(TextureFactory.getImage(imageFilename)); | ||
setMaxHeat(180000); | ||
} | ||
|
||
/** | ||
* Gets the name of the component. | ||
* @return the name of this component. | ||
*/ | ||
@Override | ||
public String toString() { | ||
String result = "180k He Coolant Cell"; | ||
if (getInitialHeat() > 0) { | ||
result += String.format(" (initial heat: %,d)", (int)getInitialHeat()); | ||
} | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean isHeatAcceptor() { | ||
return !isBroken(); | ||
} | ||
|
||
@Override | ||
public MaterialsList getMaterials() { | ||
return MATERIALS; | ||
} | ||
|
||
@Override | ||
public double adjustCurrentHeat(double heat) { | ||
currentCellCooling += heat; | ||
bestCellCooling = Math.max(currentCellCooling, bestCellCooling); | ||
return super.adjustCurrentHeat(heat); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package Ic2ExpReactorPlanner; | ||
|
||
/** | ||
* Represents a 180k NaK Coolant Cell. | ||
* @author Brian McCloud | ||
*/ | ||
public class CoolantCell180kNak extends ReactorComponent { | ||
|
||
/** | ||
* The filename for the image to show for the component. | ||
*/ | ||
private static final String imageFilename = "gt.180k_NaK_Coolantcell.png"; | ||
|
||
public static final MaterialsList MATERIALS = new MaterialsList(3, CoolantCell60kNak.MATERIALS, 6, "Tin Plate"); | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public CoolantCell180kNak() { | ||
setImage(TextureFactory.getImage(imageFilename)); | ||
setMaxHeat(180000); | ||
} | ||
|
||
/** | ||
* Gets the name of the component. | ||
* @return the name of this component. | ||
*/ | ||
@Override | ||
public String toString() { | ||
String result = "180k NaK Coolant Cell"; | ||
if (getInitialHeat() > 0) { | ||
result += String.format(" (initial heat: %,d)", (int)getInitialHeat()); | ||
} | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean isHeatAcceptor() { | ||
return !isBroken(); | ||
} | ||
|
||
@Override | ||
public MaterialsList getMaterials() { | ||
return MATERIALS; | ||
} | ||
|
||
@Override | ||
public double adjustCurrentHeat(double heat) { | ||
currentCellCooling += heat; | ||
bestCellCooling = Math.max(currentCellCooling, bestCellCooling); | ||
return super.adjustCurrentHeat(heat); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package Ic2ExpReactorPlanner; | ||
|
||
/** | ||
* Represents a 360k Helium Coolant Cell. | ||
* @author Brian McCloud | ||
*/ | ||
public class CoolantCell360kHelium extends ReactorComponent { | ||
|
||
/** | ||
* The filename for the image to show for the component. | ||
*/ | ||
private static final String imageFilename = "gt.360k_Helium_Coolantcell.png"; | ||
|
||
public static final MaterialsList MATERIALS = new MaterialsList(2, CoolantCell180kHelium.MATERIALS, 6, "Tin Plate", "Dense Copper Plate"); | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public CoolantCell360kHelium() { | ||
setImage(TextureFactory.getImage(imageFilename)); | ||
setMaxHeat(360000); | ||
} | ||
|
||
/** | ||
* Gets the name of the component. | ||
* @return the name of this component. | ||
*/ | ||
@Override | ||
public String toString() { | ||
String result = "360k He Coolant Cell"; | ||
if (getInitialHeat() > 0) { | ||
result += String.format(" (initial heat: %,d)", (int)getInitialHeat()); | ||
} | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean isHeatAcceptor() { | ||
return !isBroken(); | ||
} | ||
|
||
@Override | ||
public MaterialsList getMaterials() { | ||
return MATERIALS; | ||
} | ||
|
||
@Override | ||
public double adjustCurrentHeat(double heat) { | ||
currentCellCooling += heat; | ||
bestCellCooling = Math.max(currentCellCooling, bestCellCooling); | ||
return super.adjustCurrentHeat(heat); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package Ic2ExpReactorPlanner; | ||
|
||
/** | ||
* Represents a 360k NaK Coolant Cell. | ||
* @author Brian McCloud | ||
*/ | ||
public class CoolantCell360kNak extends ReactorComponent { | ||
|
||
/** | ||
* The filename for the image to show for the component. | ||
*/ | ||
private static final String imageFilename = "gt.360k_NaK_Coolantcell.png"; | ||
|
||
public static final MaterialsList MATERIALS = new MaterialsList(2, CoolantCell180kNak.MATERIALS, 6, "Tin Plate", "Dense Copper Plate"); | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public CoolantCell360kNak() { | ||
setImage(TextureFactory.getImage(imageFilename)); | ||
setMaxHeat(360000); | ||
} | ||
|
||
/** | ||
* Gets the name of the component. | ||
* @return the name of this component. | ||
*/ | ||
@Override | ||
public String toString() { | ||
String result = "360k NaK Coolant Cell"; | ||
if (getInitialHeat() > 0) { | ||
result += String.format(" (initial heat: %,d)", (int)getInitialHeat()); | ||
} | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean isHeatAcceptor() { | ||
return !isBroken(); | ||
} | ||
|
||
@Override | ||
public MaterialsList getMaterials() { | ||
return MATERIALS; | ||
} | ||
|
||
@Override | ||
public double adjustCurrentHeat(double heat) { | ||
currentCellCooling += heat; | ||
bestCellCooling = Math.max(currentCellCooling, bestCellCooling); | ||
return super.adjustCurrentHeat(heat); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package Ic2ExpReactorPlanner; | ||
|
||
/** | ||
* Represents a 60k Helium Coolant Cell. | ||
* @author Brian McCloud | ||
*/ | ||
public class CoolantCell60kHelium extends ReactorComponent { | ||
|
||
/** | ||
* The filename for the image to show for the component. | ||
*/ | ||
private static final String imageFilename = "gt.60k_Helium_Coolantcell.png"; | ||
|
||
public static final MaterialsList MATERIALS = new MaterialsList("Helium Cell", 4, "Tin Plate"); | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public CoolantCell60kHelium() { | ||
setImage(TextureFactory.getImage(imageFilename)); | ||
setMaxHeat(60000); | ||
} | ||
|
||
/** | ||
* Gets the name of the component. | ||
* @return the name of this component. | ||
*/ | ||
@Override | ||
public String toString() { | ||
String result = "60k He Coolant Cell"; | ||
if (getInitialHeat() > 0) { | ||
result += String.format(" (initial heat: %,d)", (int)getInitialHeat()); | ||
} | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean isHeatAcceptor() { | ||
return !isBroken(); | ||
} | ||
|
||
@Override | ||
public MaterialsList getMaterials() { | ||
return MATERIALS; | ||
} | ||
|
||
@Override | ||
public double adjustCurrentHeat(double heat) { | ||
currentCellCooling += heat; | ||
bestCellCooling = Math.max(currentCellCooling, bestCellCooling); | ||
return super.adjustCurrentHeat(heat); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package Ic2ExpReactorPlanner; | ||
|
||
/** | ||
* Represents a 60k NaK Coolant Cell. | ||
* @author Brian McCloud | ||
*/ | ||
public class CoolantCell60kNak extends ReactorComponent { | ||
|
||
/** | ||
* The filename for the image to show for the component. | ||
*/ | ||
private static final String imageFilename = "gt.60k_NaK_Coolantcell.png"; | ||
|
||
public static final MaterialsList MATERIALS = new MaterialsList(CoolantCell10k.MATERIALS, 2, "Sodium Dust", 4, "Potassium Dust", 4, "Tin Plate"); | ||
|
||
/** | ||
* Creates a new instance. | ||
*/ | ||
public CoolantCell60kNak() { | ||
setImage(TextureFactory.getImage(imageFilename)); | ||
setMaxHeat(60000); | ||
} | ||
|
||
/** | ||
* Gets the name of the component. | ||
* @return the name of this component. | ||
*/ | ||
@Override | ||
public String toString() { | ||
String result = "60k NaK Coolant Cell"; | ||
if (getInitialHeat() > 0) { | ||
result += String.format(" (initial heat: %,d)", (int)getInitialHeat()); | ||
} | ||
return result; | ||
} | ||
|
||
@Override | ||
public boolean isHeatAcceptor() { | ||
return !isBroken(); | ||
} | ||
|
||
@Override | ||
public MaterialsList getMaterials() { | ||
return MATERIALS; | ||
} | ||
|
||
@Override | ||
public double adjustCurrentHeat(double heat) { | ||
currentCellCooling += heat; | ||
bestCellCooling = Math.max(currentCellCooling, bestCellCooling); | ||
return super.adjustCurrentHeat(heat); | ||
} | ||
|
||
} |
Oops, something went wrong.