mooball
    Preparing search index...

    Type Alias Impl

    Implementation of Mooball's inner classes. Some important classes are exported through this object. The explanations will be cut short, vague and sometimes partially ambiguous here; and only some of the properties of classes will be explored due to the potentially harmful nature of explaining these in detail.

    type Impl = {
        Core: { Point: Point; Team: Team; TeamColors: TeamColors };
        Stadium: {
            Disc: Disc;
            Goal: Goal;
            Joint: Joint;
            Plane: Plane;
            Segment: Segment;
            Stadium: IStadium;
            StadiumImage: StadiumImage;
            StadiumText: StadiumText;
            Vertex: Vertex;
        };
        Stream: { Reader: Reader; Writer: Writer };
    }
    Index

    Properties

    Properties

    Core: { Point: Point; Team: Team; TeamColors: TeamColors }

    Some important core classes used inside Mooball.

    Type Declaration

    • Point: Point

      The Point class that is used internally inside the game's physics engine.

    • Team: Team

      The class that defines the properties of a team.

    • TeamColors: TeamColors

      The class that defines the colors of a team.

    Stadium: {
        Disc: Disc;
        Goal: Goal;
        Joint: Joint;
        Plane: Plane;
        Segment: Segment;
        Stadium: IStadium;
        StadiumImage: StadiumImage;
        StadiumText: StadiumText;
        Vertex: Vertex;
    }

    All Stadium-related classes.

    Type Declaration

    • Disc: Disc

      A class that defines a disc.

    • Goal: Goal

      A class that defines a goal.

    • Joint: Joint

      A class that defines a joint.

    • Plane: Plane

      A class that defines a plane.

    • Segment: Segment

      A class that defines a segment.

    • Stadium: IStadium

      A class that defines a stadium.

    • StadiumImage: StadiumImage

      A class that defines an image in a stadium.

    • StadiumText: StadiumText

      A class that defines a text in a stadium.

    • Vertex: Vertex

      A class that defines a vertex.

    Stream: { Reader: Reader; Writer: Writer }

    These classes are used to read/write data from/to replay files and/or network/WebRTC stream.

    Type Declaration

    • Reader: Reader

      StreamReader class

    • Writer: Writer

      StreamWriter class