Exemplo n.º 1
0
		public override bool interpret(Context ctx)
		{
			double a = FAngle(ctx.Angle);
			double x= ctx.LocationX + Length * Math.Cos(a);
			double y =ctx.LocationY + Length * Math.Sin(a);
			ctx.LocationX=(int)x;
			ctx.LocationY =(int)y;
			ctx.DrawLocation();
			return true;
		}
Exemplo n.º 2
0
		public override bool interpret(Context ctx)
		{
			ctx.Angle= ctx.Angle + angle;
			ctx.DrawLocation();
			return true;
		}