BlipManagerSingleton
Static Member Summary
Static Private Members | ||
private static |
The center of the screen's coordinates (in pixels). |
|
private static |
The size of the game. |
|
private static |
The size of the game halfed. |
|
private static |
The maximum number of blips that can exist on the screen at once. |
|
private static |
The default tile size. |
|
private static |
An array tracking all stored blips. |
Static Method Summary
Static Private Methods | ||
private static |
Gets the angle between two points. |
|
private static |
getDirection(pAngle: number): * Gets the direction of the angle passed. |
|
private static |
getDistance(pStartPoint: Object, pEndPoint: Object, pCenter: boolean): number API to get distance between points. |
Constructor Summary
Private Constructor | ||
private |
|
Member Summary
Public Members | ||
public |
version: * The version of the module. |
Private Members | ||
private |
An array tracking all active blips (hidden or not). |
|
private |
The interface used to handle the blips. |
|
private |
The logger module this module uses to log errors / logs |
|
private |
Whether the manager is actively managing the state of blips. |
Method Summary
Public Methods | ||
public |
Hides all blips |
|
public |
pause() Pauses the blip manager from managing blips |
|
public |
resume() Resumes the blip manager to manage blips |
|
public |
Tracks a blip within the activeBlips array. |
|
public |
Untracks a blip from the activeBlips array. |
Private Methods | ||
private |
Method for updating the "state" of each blip. |
Static Private Members
private static CENTER_SCREEN_POSITION: number source
The center of the screen's coordinates (in pixels).
private static MAX_BLIPS: number source
The maximum number of blips that can exist on the screen at once.
Static Private Methods
private static getAngle(pStartPoint: Object, pEndPoint: Object, pCenter: boolean): number source
Gets the angle between two points.
private static getDirection(pAngle: number): * source
Gets the direction of the angle passed.
Params:
Name | Type | Attribute | Description |
pAngle | number | The angle in radians to convert into a cardinal direction. |
Return:
* | The direction of the angle. |
Private Constructors
private constructor() source
Public Members
Private Members
Public Methods
public track(pBlip: Object) source
Tracks a blip within the activeBlips array.
Params:
Name | Type | Attribute | Description |
pBlip | Object | The blip to track. |
public untrack(pBlip: Object) source
Untracks a blip from the activeBlips array.
Params:
Name | Type | Attribute | Description |
pBlip | Object | The blip to untrack. |