예제 #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
예제 #2
0
파일: moving.py 프로젝트: fife-rpg/fife-rpg
 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"
예제 #3
0
파일: equip.py 프로젝트: fife-rpg/fife-rpg
    def __init__(self, **fields):
        """Create the slots.

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

        Args:
            fields: kwargs argument containing the data of the fields
        """
        Base.__init__(self, **fields)
예제 #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"
예제 #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"
예제 #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
예제 #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"
예제 #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
예제 #10
0
 def __init__(self):
     Base.__init__(self, children=list, max_bulk=int)
     self.fields['children'].default = list
예제 #11
0
 def __init__(self):
     Base.__init__(self, layer=object, behaviour=object, instance=object)
예제 #12
0
 def __init__(self):
     Base.__init__(self, text=str)
예제 #13
0
 def __init__(self):
     Base.__init__(self, dialogue=object)
예제 #14
0
 def __init__(self):
     Base.__init__(self, target_map=str, target_position=list,
                   target_layer=str)
예제 #15
0
 def __init__(self):
     Base.__init__(self, view_name=str, real_name=str, desc=str)
예제 #16
0
 def __init__(self):
     Base.__init__(self, max_bulk=float, max_slots=int)
예제 #17
0
 def __init__(self):
     Base.__init__(self, target_map=str, target_position=DoublePoint3DYaml,
                   target_layer=str)
예제 #18
0
 def __init__(self):
     Base.__init__(self, identifier=str)
예제 #19
0
 def __init__(self):
     Base.__init__(self, identifier=str)
예제 #20
0
 def __init__(self):
     Base.__init__(self, dialogue=object)
예제 #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,)
예제 #22
0
 def __init__(self):
     Base.__init__(self, bulk=int, weight=int, item_type=str, image=str,
                         container=object, slot=int)
예제 #23
0
 def __init__(self):
     Base.__init__(self, possible_slots=list, wearer=object, in_slot=str)
예제 #24
0
 def __init__(self):
     Base.__init__(self, possible_slots=list, wearer=object, in_slot=str)
예제 #25
0
 def __init__(self):
     Base.__init__(self, view_name=str, real_name=str, desc=str)
예제 #26
0
 def __init__(self):
     Base.__init__(self, max_bulk=float, max_slots=int)
예제 #27
0
 def __init__(self):
     Base.__init__(self, layer=object, behaviour=object, instance=object)
예제 #28
0
 def __init__(self):
     Base.__init__(self, text=str)