def __init__(self, **kwargs): """ Create a new Entity. kwarg : description : default -------------------------------------------------------- x : center of the entity's x position : 0 y : center of the entity's y position : 0 visible : is the entity drawn/visible : True enabled : is the entity updating : True timescale : see update methods : 1.0 collider : collision object for the entity : None """ self._x, self._y = kwargs.get('x', 0), kwargs.get('y', 0) #pylint:disable-msg=C0103,C0301 self._visible = kwargs.get('visible', True) self._enabled = kwargs.get('enabled', True) self._timescale = kwargs.get('timescale', 1.0) self._collider = kwargs.get('collider', None) self._last_dmg_src = None self._id = ID.get_id(self) self._dirty = False self._dt = 0.0
def __init__(self, **kwargs): """ Create a new Entity. kwarg : description : default -------------------------------------------------------- x : center of the entity's x position : 0 y : center of the entity's y position : 0 visible : is the entity drawn/visible : True enabled : is the entity updating : True timescale : see update methods : 1.0 collider : collision object for the entity : None """ self._x, self._y = kwargs.get('x', 0), kwargs.get( 'y', 0) #pylint:disable-msg=C0103,C0301 self._visible = kwargs.get('visible', True) self._enabled = kwargs.get('enabled', True) self._timescale = kwargs.get('timescale', 1.0) self._collider = kwargs.get('collider', None) self._last_dmg_src = None self._id = ID.get_id(self) self._dirty = False self._dt = 0.0
def __init__(self, custom_id=None): self.eid = ID.get_id(self, custom_id=custom_id)
def __init__(self, custom_id=None): self.id = ID.get_id( self, custom_id=custom_id) #pylint:disable-msg=C0103,C0301 self._listeners = []
def __init__(self, custom_id = None): self.eid = ID.get_id(self, custom_id = custom_id)
def __init__(self, custom_id=None): self.id = ID.get_id(self, custom_id = custom_id) #pylint:disable-msg=C0103,C0301 self._listeners = []