<?xml version="1.0" encoding="UTF-8"?>
<class name="Delfin" extends="Actor" extends-java="Actor" enable="true" strideversion="1">
    <javadoc xml:space="preserve"/>
    <imports>
        <import target="java.util.*" enable="true"/>
        <import target="greenfoot.*" enable="true"/>
    </imports>
    <implements/>
    <fields/>
    <constructors/>
    <methods>
        <method access="public" type="void" type-java="void" name="act" enable="true">
            <javadoc xml:space="preserve">Act - do whatever the Delfin wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.</javadoc>
            <params/>
            <throws/>
            <body>
                <call expression="this.move(7)" expression-java="this.move(7)" enable="true"/>
                <if condition="this.isAtEdge()" condition-java="this.isAtEdge()" enable="true">
                    <ifStatements>
                        <call expression="this.turn(Greenfoot.getRandomNumber(360))" expression-java="this.turn(Greenfoot.getRandomNumber(360))" enable="true"/>
                    </ifStatements>
                </if>
            </body>
        </method>
    </methods>
</class>
