Exemple #1
0
    //void AddCrateData (int col,int row, bool isMovable) {
    //    CrateData newData = new CrateData (new Vector2Int(col,row), isMovable);
    //    allObjectDatas.Add (newData);
    //    SetOccupantInBoard (newData);
    //}
    void AddVoydData(int col, int row, bool doTogFromUsage)
    {
        VoydData newData = new VoydData(new BoardPos(col, row), true, doTogFromUsage);

        allObjectDatas.Add(newData);
        SetOccupantInBoard(newData);
    }
Exemple #2
0
    private void AddVoyd(VoydData data)
    {
        Voyd prop = new Voyd(this, data);

        allObjects.Add(prop);
        objectsAddedThisMove.Add(prop);
    }
Exemple #3
0
 // ----------------------------------------------------------------
 //  Initialize
 // ----------------------------------------------------------------
 public Voyd(Board _boardRef, VoydData data)
 {
     base.InitializeAsBoardOccupant(_boardRef, data);
     this.IsOn           = data.isOn;
     this.DoTogFromUsage = data.doTogFromUsage;
     // Tell my BoardSpace I'm on it!
     //MySpace.SetMyVoyd (this);
 }