Initial commit
This commit is contained in:
commit
593d8ebfea
30 changed files with 2206 additions and 0 deletions
56
BucketChain/Fire.cs
Normal file
56
BucketChain/Fire.cs
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
namespace BucketChain;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a fire which the bucket chain will attempt to extinguish.
|
||||
/// </summary>
|
||||
public sealed class Fire
|
||||
{
|
||||
// TODO
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new fire with the passed properties.
|
||||
/// </summary>
|
||||
/// <param name="initialFireSize">Initial size of the fire</param>
|
||||
/// <param name="growRate">Rate by which the fire grows with each (chain operation) step</param>
|
||||
public Fire(double initialFireSize, double growRate)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets the current size of the fire; cannot be smaller than 0.
|
||||
/// </summary>
|
||||
// TODO
|
||||
// public double FireSize ...
|
||||
|
||||
/// <summary>
|
||||
/// Gets if the fire has been extinguished (= size is 0).
|
||||
/// </summary>
|
||||
public bool Extinguished => false; // TODO
|
||||
|
||||
/// <summary>
|
||||
/// The fire is hit by a load of water from a bucket.
|
||||
/// Reduces the fire size by the amount of liters it received.
|
||||
/// </summary>
|
||||
/// <param name="amount">Liters of water</param>
|
||||
public void GetHitByWater(double amount)
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Increases the size of the fire.
|
||||
/// In this simulation the growth rate is linear & constant and not influenced by the size of the fire.
|
||||
/// </summary>
|
||||
public void BurnHigher()
|
||||
{
|
||||
// TODO
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates a string representation of the fire showing the current size.
|
||||
/// The size is rounded to whole numbers.
|
||||
/// </summary>
|
||||
/// <returns>String representation of the fire</returns>
|
||||
public override string ToString() => string.Empty; // TODO
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue