Game Development Reference
Go through these final steps in the order they appear here:
9. Add the OUT box.
10. Select which state or states should be connected to the OUT box. Your criteria
should include choosing places in the test that are appropriate for stopping
one test and starting the next one or states that naturally occur at the end of
the ability or achievement modeled by the TFD. For each of these states,
provide a connecting flow to the OUT box with an “Exit�? event. There
should be no more than one such flow coming from any state.
11. Update your IN and OUT box names to IN_xxx and OUT_xxx where xxx is a
brief descriptive name for the TFD. This is done at the end in case your
scope or focus has changed during the process of creating the TFD.
12. Number all of the flows.
The TFD examples in this chapter were drawn using SmartDraw 6. A demo version of
this software is included on the topic's CD-ROM. After you install SmartDraw 6,
launch it and you will be prompted for which version you want to try. Select the
Standard version and click the Try It Free button. Click Try It Free again when you get
the SmartDraw Free Trial window. You will now be at the Welcome to SmartDraw!
window shown in Figure 11.2. Click the “Create a new drawing�? icon and then click
OK. Later on, when you launch SmartDraw again to work on an existing TFD, click on
“Open a recently used Drawing,�? select it from the pull down list, and then click OK.
Now select Software Design from the Create New Drawing window as shown in Figure
11.3. This has drawing elements that you can use for your TFD, or you can just stick
with the basic geometric figures that will also appear in the drawing window. Click
Create Blank Drawing and you get the SmartDraw Hint window. You can view the
tutorial or click OK to proceed. There are a number of drawing icons across the top
of the blank drawing window. You only need to use a few of these for your TFD, name-
ly the Draw a Rectangle, Draw a Connector Symbol (Circle), and any or all of the four
line types: Straight Line, Arc, Segmented Line, or Curved Line.
Drag from the figure icon to place one in your diagram, or click the figure's icon and
draw the figure to whatever size you desire. To draw flows, click one of the line types,
click the starting point of the line, drag the cursor to the end point, and unclick. The
first time you do this the line will not have an arrowhead. To add one, click the line
and go up to the Line menu at the top of the SmartDraw window. Pull down the Line
menu and click Arrowheads… to get the window shown in Figure 11.4. Select one of
the Right arrowheads. One example is highlighted in the figure.