Beispiel #1
0
        public static RectangularPrism MakeStandard(Vector3 position)
        {
            var size = new Size3(10, TileHeight, 10);

            return(new RectangularPrism(
                       Create(size),
                       position,
                       SceneColors.NextPrismColor(),
                       size));
        }
Beispiel #2
0
        public RectangularPrism CreateNextUnboundPrism()
        {
            var top = Top;

            return(RectangularPrismFactory.Make(
                       new Size3(top.Size.X, top.Size.Y, top.Size.Z),
                       new Vector3(
                           top.Position.X,
                           _prisms.Count * RectangularPrismFactory.TileHeight,
                           top.Position.Z),
                       SceneColors.NextPrismColor()));
        }