public class Cell

This nested type resides in AmbientTemperatureGridBehaviour

A temperature grid cell. The world creates these where necessary.

Fields

public float ReadTemperature

The temperature field that is meant to be written to. Do not read from this field.


public float WriteTemperature

The temperature field that is meant to be read from. Do not write to this field.


public bool CanCreateNeighbours

Can this cell create neighbours if its temperature is significant enough? This is set to false once this cell has created its neighbours.


public bool CanTransferTemperature

Can this cell transfer temperature to surrounding cells? When cells are created, they should check if they are inside the world walls. If they are, this flag is set to true.


Methods

public (constructor) Cell(float t)

Construct a cell with temperature t.


public void Set(float t)

Set the temperature at this cell


public void ForceSet(float t)

Forcibly set the read and write temperature of this cell


public float Get()

Get the temperature of this cell


public void Sync()

Synchronise the read and write fields


Attention!

This member is obsolete and should not be used. It is a remnant from the past.

bi bij bibi