Exemplo n.º 1
0
 public LeverActuator(Vector3 position, Tile targetTile, bool onceOnly, ActionStateX targetAction) : base(position)
 {
     Activated    = false;
     TargetAction = targetAction;
     TargetTile   = targetTile;
     OnceOnly     = onceOnly;
 }
Exemplo n.º 2
0
 public LeverActuator(Vector3 position, Tile targetTile, bool onceOnly, ActionStateX targetAction) : base(position)
 {
     Activated = false;
     TargetAction = targetAction;
     TargetTile = targetTile;
     OnceOnly = onceOnly;
 }
Exemplo n.º 3
0
 public LogicGate(Tile targetTile, ActionStateX action, Vector3 position, bool refBit0, bool refBit1, bool refBit2, bool refBit3) : base(targetTile, action, position)
 {
     Activated     = false;
     ReferenceBit0 = refBit0;
     ReferenceBit1 = refBit1;
     ReferenceBit2 = refBit2;
     ReferenceBit3 = refBit3;
 }
Exemplo n.º 4
0
 public LogicGate(Tile targetTile, ActionStateX action, Vector3 position, bool refBit0, bool refBit1, bool refBit2, bool refBit3) : base(targetTile,action, position)
 {
     Activated = false;
     ReferenceBit0 = refBit0;
     ReferenceBit1 = refBit1;
     ReferenceBit2 = refBit2;
     ReferenceBit3 = refBit3;
 }
 public TimerSwitchActuator(Vector3 position, Tile targetTile, ActionStateX firstAction, ActionStateX secondAction) : base(position)
 {
     TargetTile   = targetTile;
     FirstAction  = firstAction;
     SecondAction = secondAction;
 }
Exemplo n.º 6
0
 public CounterActuator(Tile targetTile, ActionStateX action, int startCount, Vector3 position) : base(targetTile,action, position)
 {
     count = startCount;
 }
Exemplo n.º 7
0
 public SwitchActuator(Vector3 position, Tile targetTile, ActionStateX action ) : base(targetTile, action, position)
 { }
Exemplo n.º 8
0
 public Button(Vector3 position, Tile targetTile, ActionStateX action) : base(targetTile, action, position)
 { }
Exemplo n.º 9
0
 public SwitchActuator(Vector3 position, Tile targetTile, ActionStateX action) : base(targetTile, action, position)
 {
 }
Exemplo n.º 10
0
 public CounterActuator(Tile targetTile, ActionStateX action, int startCount, Vector3 position) : base(targetTile, action, position)
 {
     count = startCount;
 }
Exemplo n.º 11
0
 public HolderButtonActuator(Vector3 position, Tile targetTile, IEnumerable<IGrabableItem> items, ActionStateX action) : base(targetTile, action, position)
 {
     this.items = new List<IGrabableItem>(items);
     Activated = items.Any();
 }
Exemplo n.º 12
0
 protected override void PerformMessage(Tile targetTile, ActionStateX action, bool activated)
 {
     targetTile.ExecuteContentActivator(new LogicTileActivator(action));
     Toggle(targetTile);
 }
Exemplo n.º 13
0
 public Button(Vector3 position, Tile targetTile, ActionStateX action) : base(targetTile, action, position)
 {
 }
Exemplo n.º 14
0
 public LogicTileActivator( ActionStateX action)
 {
     BitIndex = action.Specifer;
     BitAction = action.Action;
 }
Exemplo n.º 15
0
 protected override void PerformMessage(Tile targetTile, ActionStateX action, bool activated)
 {
     targetTile.ExecuteContentActivator(new LogicTileActivator(action));
     Toggle(targetTile);
 }
Exemplo n.º 16
0
 public LogicTileActivator(ActionStateX action)
 {
     BitIndex  = action.Specifer;
     BitAction = action.Action;
 }
Exemplo n.º 17
0
 public HolderButtonActuator(Vector3 position, Tile targetTile, IEnumerable <IGrabableItem> items, ActionStateX action) : base(targetTile, action, position)
 {
     this.items = new List <IGrabableItem>(items);
     Activated  = items.Any();
 }