Exemple #1
0
 virtual public void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small)
 {
     x      = _x;
     y      = _y;
     growth = _growth;
     owner  = _owner;
 }
Exemple #2
0
    void Start()
    {
        Debug.Log("Server Start");
        playground = new LogicPlayground(gridX, gridY, offsetX, offsetY);

        character = new LogicJack[2];

        var l1 = new LogicJack(PLAY.ER1, 0, 0);

        l1.ac        = acPerTurn;
        character[0] = l1;

        var l2 = new LogicJack(PLAY.ER2, gridX - 1, 0);

        l2.ac        = acPerTurn;
        character[1] = l2;

        l1.Opponent = l2;
        l2.Opponent = l1;

        ready = new bool[2] {
            false, false
        };

        photonView.RPC("InitClient", PhotonTargets.AllViaServer, gridX, gridY, offsetX, offsetY);
    }
Exemple #3
0
 public override void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small)
 {
     base.Init(logicPlayground, _x, _y, _owner, _growth);
     type = TreeType.Basic;
 }
Exemple #4
0
 public override void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small)
 {
     base.Init(logicPlayground, _x, _y, _owner, _growth);
     logicPlayground.onTurnChange += GiveBonusAc;
     type = TreeType.BonusAc;
 }
Exemple #5
0
 public override void Flush(LogicPlayground logicPlayground)
 {
     logicPlayground.onTurnChange -= GiveBonusAc;
 }
Exemple #6
0
 virtual public void Flush(LogicPlayground logicPlayground)
 {
 }
Exemple #7
0
 public override void Init(LogicPlayground logicPlayground, int _x, int _y, LogicJack _owner, Growth _growth = Growth.Small)
 {
     base.Init(logicPlayground, _x, _y, _owner, _growth);
     logicPlayground.onPlayerTryMove += MakeThemMoveHarder;
     type = TreeType.Swamp;
 }
Exemple #8
0
 public override void Flush(LogicPlayground logicPlayground)
 {
     logicPlayground.onPlayerTryMove -= MakeThemMoveHarder;
 }