v1.4.4
This commit is contained in:
commit
9c94d113d3
10260 changed files with 1237388 additions and 0 deletions
28
source/game/interfaces/StarWireEntity.hpp
Normal file
28
source/game/interfaces/StarWireEntity.hpp
Normal file
|
@ -0,0 +1,28 @@
|
|||
#ifndef STAR_WIRE_ENTITY_HPP
|
||||
#define STAR_WIRE_ENTITY_HPP
|
||||
|
||||
#include "StarWiring.hpp"
|
||||
#include "StarTileEntity.hpp"
|
||||
|
||||
namespace Star {
|
||||
|
||||
STAR_CLASS(WireEntity);
|
||||
|
||||
class WireEntity : public virtual TileEntity {
|
||||
public:
|
||||
virtual ~WireEntity() {}
|
||||
|
||||
virtual size_t nodeCount(WireDirection direction) const = 0;
|
||||
virtual Vec2I nodePosition(WireNode wireNode) const = 0;
|
||||
virtual List<WireConnection> connectionsForNode(WireNode wireNode) const = 0;
|
||||
virtual bool nodeState(WireNode wireNode) const = 0;
|
||||
|
||||
virtual void addNodeConnection(WireNode wireNode, WireConnection nodeConnection) = 0;
|
||||
virtual void removeNodeConnection(WireNode wireNode, WireConnection nodeConnection) = 0;
|
||||
|
||||
virtual void evaluate(WireCoordinator* coordinator) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue