(version 2)
(include "sci.sh")
(exports
    0 throwDag
)
(use "Main")
(use "Class_255_0")
(use "Cycle")
(use "Obj")
(script 780)



(instance public throwDag of Script
    (properties)

    (method (changeState newState)
        (var gEgoIllegalBits)
        (switch (= state newState)
            (case 0
                proc0_2()
                (if ((send gCast:contains(gMenace)))
                    proc0_15(gEgo gMenace)
                )
                (if (proc0_12(0))
                    (send gEgo:view(53))
                )(else
                    (if (<> gNumber 65)
                        (send gEgo:
                            loop(
                                (if ((< 0 (send gEgo:heading)) and (< (send gEgo:heading) 180))
                                    0
                                )(else
                                    1
                                )
)
                            view(51)
                        )
                    )(else
                        (send gEgo:view(51))
                    )
                )
                (send gEgo:
                    cel(0)
                    setCycle(End self)
                )
            )
            (case 1
                proc255_0(780 0)
                (send gGame:changeScore(-5))
                (send gEgo:put(0))
                = gEgoIllegalBits (send gEgo:illegalBits)
                proc0_1()
                (send gEgo:illegalBits(gEgoIllegalBits))
                (send gEgo:loop(2))
                proc0_3()
                (self:dispose())
            )
        )
    )

)
