src/VirtualShield.cpp
/// <summary>
/// Adds a sensor to the list of known sensors in order to match and dispatch for incoming events.
/// </summary>
/// <param name="sensor">The sensor to add.</param>
/// <returns>true if it was added, false if the maxRememberedSensors is reached.</returns>

Adds a sensor to the list of known sensors in order to match and dispatch for incoming events.

The sensor to add.
true if it was added, false if the maxRememberedSensors is reached.
Adds a sensor to the list of known sensors in order to match and dispatch for incoming events . The sensor to add . true if it was added false if the maxRememberedSensors is reached .
bool VirtualShield::addSensor(Sensor* sensor) {
	if (sensorCount == maxRememberedSensors)
	{
		return false;
	}
	sensors[sensorCount++] = sensor;
	return true;
}
bool VirtualShield :: addSensor ( Sensor * sensor ) { if ( sensorCount == maxRememberedSensors ) { return false ; } sensors [ sensorCount ++ ] = sensor ; return true ; }
<summary>
Adds a sensor to the list of known sensors in order to match and dispatch for incoming events.
<summary > Adds a sensor to the list of known sensors in order to match and dispatch for incoming events .