Ejemplo n.º 1
0
 public Ant( Ground g, int row, int column )
 {
     this.g = g;
     position.X = g.GetTileCenter( row, column ).X;
     position.Y = g.GetTileCenter( row, column ).Y;
 }
Ejemplo n.º 2
0
        //
        public static void Draw()
        {
            g = mainUI.GetDrawingPanel().CreateGraphics();
            GraphicsContainer gContainer = g.BeginContainer();
            g.ScaleTransform( 1.0F, -1.0F );
            g.TranslateTransform( DP_OFFSET_X, -( float ) mainUI.GetDrawingPanel().Height + DP_OFFSET_Y );

            if ( DP_ANTI_ALIAS )
            {
                g.SmoothingMode = SmoothingMode.AntiAlias;
            }

            Ground ground = new Ground();
            ground.Draw( g );

            g.EndContainer( gContainer );
        }