design+decisions

MERGED WITH PRESENTATION

Decorator Allows an advanced user of the system to extend functionality. The Decorator can then be hooked into the template method inside the interpreter.

Scripting Example

code format="javascript" Script RFG background = template for each element decorate element.name positionx, positiony code

code TemplateScript.script variables: $type ["fta" || "gf"]

canvas = createPolygon(0px, 0px, 500px,300px); canvas.paint(Color.Black); canvas.roundEdges(10px); bg = createImage($type+"_bg.png", relative to canvas, .25in, .25in);

code

in the config file Card example = new RFG(RFGTemplate, Image(location, x, y), DescBox(contents, x2, y2), DiceBox(2,1,x3,y3))