Esempio n. 1
0
 def __init__(self):
     Base.__init__(self, bulk=float, weight=int, item_type=str, image=str,
                   container=str, slot=int, max_stack=int,
                   current_stack=int)
     self.fields['slot'].default = lambda: -1
     self.fields['max_stack'].default = lambda: 1
     self.fields['current_stack'].default = lambda: 1
Esempio n. 2
0
 def __init__(self):
     Base.__init__(self, walk_speed=float, walk_action=str,
                   run_speed=float, run_action=str)
     self.fields["walk_speed"].default = lambda: 0.0
     self.fields["walk_action"].default = lambda: "walk"
     self.fields["run_speed"].default = lambda: 0.0
     self.fields["run_action"].default = lambda: "run"
Esempio n. 3
0
    def __init__(self, **fields):
        """Create the slots.

        Args:
            fields: kwargs argument containing the data of the fields
        """
        Base.__init__(self, **fields)
Esempio n. 4
0
    def __init__(self, **fields):
        """Create the slots.

        Args:
            fields: kwargs argument containing the data of the fields
        """
        Base.__init__(self, **fields)
Esempio n. 5
0
 def __init__(self):
     Base.__init__(self, closed=bool, locked=bool,
                   open_action=str, opened_action=str,
                   close_action=str, closed_action=str)
     self.fields["open_action"].default = lambda: "open"
     self.fields["opened_action"].default = lambda: "opened"
     self.fields["close_action"].default = lambda: "close"
     self.fields["closed_action"].default = lambda: "closed"
Esempio n. 6
0
 def __init__(self):
     Base.__init__(self,
                   walk_speed=float,
                   walk_action=str,
                   run_speed=float,
                   run_action=str)
     self.fields["walk_speed"].default = lambda: 0.0
     self.fields["walk_action"].default = lambda: "walk"
     self.fields["run_speed"].default = lambda: 0.0
     self.fields["run_action"].default = lambda: "run"
Esempio n. 7
0
 def __init__(self):
     Base.__init__(self, gfx=str, map=str, new_map=object,
                   layer=str, new_layer=object, type=str,
                   position=list, new_position=object, rotation=int,
                   new_rotation=object, behaviour_type=str,
                   behaviour_args=dict, knows=set)
     self.fields["type"].default = lambda: "actor"
     self.fields["behaviour_args"].default = dict
     self.fields["new_map"].default = lambda: None
     self.fields["new_layer"].default = lambda: None
     self.fields["new_position"].default = lambda: None
     self.fields["new_rotation"].default = lambda: None
Esempio n. 8
0
 def __init__(self):
     Base.__init__(self,
                   closed=bool,
                   locked=bool,
                   open_action=str,
                   opened_action=str,
                   close_action=str,
                   closed_action=str)
     self.fields["open_action"].default = lambda: "open"
     self.fields["opened_action"].default = lambda: "opened"
     self.fields["close_action"].default = lambda: "close"
     self.fields["closed_action"].default = lambda: "closed"
Esempio n. 9
0
 def __init__(self):
     Base.__init__(self,
                   gfx=str,
                   namespace=str,
                   map=str,
                   new_map=object,
                   layer=str,
                   new_layer=object,
                   type=str,
                   position=DoublePoint3DYaml,
                   new_position=object,
                   rotation=int,
                   new_rotation=object,
                   behaviour_type=str,
                   behaviour_args=dict,
                   knows=set)
     self.fields["type"].default = lambda: "actor"
     self.fields["behaviour_args"].default = dict
     self.fields["new_map"].default = lambda: None
     self.fields["new_layer"].default = lambda: None
     self.fields["new_position"].default = lambda: None
     self.fields["new_rotation"].default = lambda: None
Esempio n. 10
0
 def __init__(self):
     Base.__init__(self, children=list, max_bulk=int)
     self.fields['children'].default = list
Esempio n. 11
0
 def __init__(self):
     Base.__init__(self, layer=object, behaviour=object, instance=object)
Esempio n. 12
0
 def __init__(self):
     Base.__init__(self, text=str)
Esempio n. 13
0
 def __init__(self):
     Base.__init__(self, dialogue=object)
Esempio n. 14
0
 def __init__(self):
     Base.__init__(self, target_map=str, target_position=list,
                   target_layer=str)
Esempio n. 15
0
 def __init__(self):
     Base.__init__(self, view_name=str, real_name=str, desc=str)
Esempio n. 16
0
 def __init__(self):
     Base.__init__(self, max_bulk=float, max_slots=int)
Esempio n. 17
0
 def __init__(self):
     Base.__init__(self, target_map=str, target_position=DoublePoint3DYaml,
                   target_layer=str)
Esempio n. 18
0
 def __init__(self):
     Base.__init__(self, identifier=str)
Esempio n. 19
0
 def __init__(self):
     Base.__init__(self, identifier=str)
Esempio n. 20
0
 def __init__(self):
     Base.__init__(self, dialogue=object)
Esempio n. 21
0
 def __init__(self):
     Base.__init__(self, gender=str, picture=str, age=int, origin=str,
                   primary_stats=dict, secondary_stats=dict,
                   stat_points=int, traits=list,)
Esempio n. 22
0
 def __init__(self):
     Base.__init__(self, bulk=int, weight=int, item_type=str, image=str,
                         container=object, slot=int)
Esempio n. 23
0
 def __init__(self):
     Base.__init__(self, possible_slots=list, wearer=object, in_slot=str)
Esempio n. 24
0
 def __init__(self):
     Base.__init__(self, possible_slots=list, wearer=object, in_slot=str)
Esempio n. 25
0
 def __init__(self):
     Base.__init__(self, view_name=str, real_name=str, desc=str)
Esempio n. 26
0
 def __init__(self):
     Base.__init__(self, max_bulk=float, max_slots=int)
Esempio n. 27
0
 def __init__(self):
     Base.__init__(self, layer=object, behaviour=object, instance=object)
Esempio n. 28
0
 def __init__(self):
     Base.__init__(self, text=str)