예제 #1
0
        public Tile(Tile oldTile, GraphicsItem symbol, RLColor fg, RLColor bg,
                    bool?walkable  = null, bool?transparent     = null, int?food = null,
                    int?production = null, int?movementRequired = null, Resource?resource = null)
        {
            X = oldTile.X;
            Y = oldTile.Y;

            Walkable         = walkable ?? oldTile.Walkable;
            Transparent      = transparent ?? oldTile.Transparent;
            Food             = food ?? oldTile.Food;
            Production       = production ?? oldTile.Production;
            MovementRequired = movementRequired ?? oldTile.MovementRequired;
            Resource         = resource ?? oldTile.Resource;

            Symbol          = symbol;
            ForegroundColor = fg;
            BackgroundColor = bg;
            WasUpdated      = true;
        }
예제 #2
0
        public Tile(int x, int y,
                    bool walkable, bool transparent, int food, int production, int movementRequired, Resource?resource,
                    GraphicsItem symbol, RLColor fg, RLColor bg, ICell cell)
        {
            X = x;
            Y = y;

            Walkable         = walkable;
            Transparent      = transparent;
            Food             = food;
            Production       = production;
            MovementRequired = movementRequired;
            Resource         = resource;

            ForegroundColor = fg;
            BackgroundColor = bg;
            Symbol          = symbol;
            Cell            = cell;
        }