add runwon and runlost functions, default win cards, call button that calls a loaded contact, added rotatecells, shiftcells, and swapcells functions to actor, reworked address to be 0-8 instead of 1-9, added underscore naming convention to function parameters, business cards to be slightly transparent when not met, added actions to contacts and made a couple examples
This commit is contained in:
@@ -43,6 +43,14 @@ public partial class BusinessCard : TextureButton
|
||||
List<Cell> ownedCells = _player._board.GetCellsByOwner(_player);
|
||||
List<int> addresses = _goal.GetAddresses(_goalName);
|
||||
_goalMet = addresses.All(a=>ownedCells.Select(c=>c._address).ToList().IndexOf(a)>-1);
|
||||
if (_goalMet)
|
||||
{
|
||||
Modulate = new Color(1,1,1,1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Modulate = new Color(1,1,1,0.3f);
|
||||
}
|
||||
}
|
||||
|
||||
public void PassPlayer(Player PLAYER)
|
||||
|
||||
Reference in New Issue
Block a user