Class Floor
Floor tile which will get dirty over time, given the chance every second of Chance. You should have a KaijuSensor which detects these and can determine which are clean and which are dirty via the Dirty parameter. From there, you will want to move the agent towards a dirty tile if it sensed one. Once close enough to the dirty floor tile, you will need to create a KaijuActuator which can call the Clean() method.
Inherited Members
Namespace: KaijuSolutions.Agents.Exercises.Cleaner
Syntax
public class Floor : KaijuBehaviour
Properties
Chance
The chance that every second this floor tile could become dirty. Note that as this is randomly calculated every fraction of a second, a value of one does not actually guarantee the tile will become dirty every second.
Declaration
public float Chance { get; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Dirty
If this floor tile is dirty.
Declaration
public bool Dirty { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
Methods
Clean()
Clean this floor tile. Your actuator will want to call this once you are close enough to this tile.
Declaration
public void Clean()