.. api:: gma.door .. api:: door gma.door ======== Provides a character object =================== ============================= Package gma/entities/door Inheritance chain :api:`gma.shapes.rectangle` =================== ============================= Tags ---- *shape*, *door* Properties ---------- .. admonition:: Inherited from :api:`gma.shapes.rectangle` :prop:`points `, :prop:`edges `, :prop:`width `, :prop:`height `, :prop:`depth `, :prop:`z `, :prop:`x `, :prop:`y `, :prop:`centre `, :prop:`left `, :prop:`right `, :prop:`top `, :prop:`bottom `, :prop:`yOffset `, :prop:`xOffset `, :prop:`type `, :prop:`alive `, :prop:`solid `, :prop:`tags ` Methods ------- .. admonition:: Inherited from :api:`gma.shapes.rectangle` :metho:`setPointsAndEdges `, :metho:`setCentre `, :metho:`setBottomLeft `, :metho:`xOf `, :metho:`yOf `, :metho:`toString `, :metho:`collided__deathtouch ` .. index:: pair: door; collided() .. _gma.door.collided: .. metho:: gma.door.collided **collided** (where, focus, focusSide, focusVector) Looks for door tag along with what super.collided does **Overrides** :metho:`gma.shapes.rectangle.collided ` +-------------------------------------------------------------------------------------+ | Parameters | +=============+=====================+=================================================+ | where | :api:`gma.constant` | Side of this object that was collided with | +-------------+---------------------+-------------------------------------------------+ | focus | object | Thing we collided with | +-------------+---------------------+-------------------------------------------------+ | focusSide | :api:`gma.constant` | Side of the focus object that was collided with | +-------------+---------------------+-------------------------------------------------+ | focusVector | [x,y] | Amount focus is trying to move | +-------------+---------------------+-------------------------------------------------+ .. index:: pair: door; collided__door() .. _gma.door.collided__door: .. metho:: gma.door.collided__door **collided__door** (where, focus, focusSide, focusVector) Collision function for hitting a door +-------------------------------------------------------------------------------------+ | Parameters | +=============+=====================+=================================================+ | where | :api:`gma.constant` | Side of this object that was collided with | +-------------+---------------------+-------------------------------------------------+ | focus | object | Thing we collided with | +-------------+---------------------+-------------------------------------------------+ | focusSide | :api:`gma.constant` | Side of the focus object that was collided with | +-------------+---------------------+-------------------------------------------------+ | focusVector | [x,y] | Amount focus is trying to move | +-------------+---------------------+-------------------------------------------------+