Esempio n. 1
0
        private static void DrawDungWall(MapWall.Kind_e kind, P4Poly poly, double y)
        {
            DDPicture picture;

            switch (kind)
            {
            case MapWall.Kind_e.NONE:
                return;

            case MapWall.Kind_e.WALL:
                picture = Layout.GetWallPicture();
                break;

            case MapWall.Kind_e.WALL_BACK:
                picture = Layout.GetWallBackPicture();
                break;

            case MapWall.Kind_e.GATE:
                picture = Layout.GetGatePicture();
                break;

            default:
                throw null;                         // never
            }
            double bright = 1.0 - y / 6.0;

            DDDraw.SetBright(bright, bright, bright);
            DDDraw.DrawFree(picture, poly);
            DDDraw.Reset();
        }
Esempio n. 2
0
 public static P4Poly Slide(P4Poly start, P4Poly end, double rate)
 {
     return(new P4Poly(
                Slide(start.LT, end.LT, rate),
                Slide(start.RT, end.RT, rate),
                Slide(start.RB, end.RB, rate),
                Slide(start.LB, end.LB, rate)
                ));
 }
Esempio n. 3
0
 //
 //	copied the source file by https://github.com/stackprobe/Factory/blob/master/SubTools/CopyLib.c
 //
 public static void DrawFree(DDPicture picture, P4Poly poly)
 {
     DrawFree(picture, poly.LT, poly.RT, poly.RB, poly.LB);
 }