2014-08-05 16:48:23 -04:00
|
|
|
|
2015-09-17 05:20:10 -04:00
|
|
|
// RedstonePoweredEntity.h
|
|
|
|
|
|
|
|
// Declares the cRedstonePoweredEntity class representing a mix-in for block entities that respond to redstone
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2014-08-05 17:54:36 -04:00
|
|
|
#pragma once
|
2014-08-05 16:48:23 -04:00
|
|
|
|
2015-09-17 05:20:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** Interface class representing a mix-in for block entities that respond to redstone */
|
2014-08-05 16:48:23 -04:00
|
|
|
class cRedstonePoweredEntity
|
|
|
|
{
|
|
|
|
public:
|
2014-08-05 17:54:36 -04:00
|
|
|
|
2014-09-22 18:23:56 -04:00
|
|
|
virtual ~cRedstonePoweredEntity() {}
|
2014-08-05 17:54:36 -04:00
|
|
|
|
2015-09-17 05:20:10 -04:00
|
|
|
/** Sets the internal redstone power flag to "on" or "off", depending on the parameter.
|
|
|
|
Calls Activate() if appropriate */
|
2014-08-05 16:48:23 -04:00
|
|
|
virtual void SetRedstonePower(bool a_IsPowered) = 0;
|
|
|
|
};
|
2015-09-17 05:20:10 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|