예제 #1
0
    def _buildCat(self) -> ClassDefinition:

        cat: ClassDefinition = ClassDefinition(name='gato',
                                               position=Position(536, 19),
                                               size=Size(height=74, width=113))

        initMethod: MethodDefinition = MethodDefinition('__init')
        sitMethod: MethodDefinition = MethodDefinition('sit')
        rollOverMethod: MethodDefinition = MethodDefinition('rollOver')

        cat.methods = [initMethod, sitMethod, rollOverMethod]

        return cat