References
client
client/controllers
| summary | ||
| public |
C Audio Controls audio and sfx in the game |
|
| public |
C Bubble Creates player speach bubbles |
|
| public |
C Chat Manages the game's chat log window and chat history |
|
| public |
C Entities Entities in the game:
|
|
| public |
C Info Displays additional information on the screen as the game is running. |
|
| public |
C Input Handles game mouse and keyboard input |
|
| public |
Handles game UI interfaces |
|
| public |
C Overlay Shows an popup overlay when the mouse is over a character or enemy that displays information about them |
|
| public |
Used to load the character and items for the player |
|
| public |
C Cursor Handles the cursor on the HTML5 canvas, different pointers can be swapped out depending on the entity the player is interacting with, this holds all of the individual pointers whereas Pointer holds a specific/individual cursor |
|
| public |
C Sprites Class responsible for loading all the necessary sprites from the JSON. |
|
| public |
C Zone Keeps track of the Entity direction |
|
client/entity
client/entity/character/mob
client/entity/character/player
client/entity/character/player/equipment
client/entity/objects
client/interface
| summary | ||
| public |
Manages the abilities shortcut bar interface |
|
| public |
C Actions Manages the context action menu interface for inventory and player interactions |
|
| public |
C Bank Manages the bank interface for storing and retrieving items |
|
| public |
C Enchant Manages the enchanting interface for applying abilities to items |
|
| public |
Manages the player inventory interface for viewing and using items |
|
| public |
C Warp Manages the world map warp interface for fast-travelling between locations |
|
client/interface/container
client/interface/profile
| summary | ||
| public |
C Ability Represents the abilities/skills profile page |
|
| public |
C GamePage Base class for profile dialog pages |
|
| public |
C Profile Manages the player profile dialog, including page navigation and sub-pages |
|
| public |
C Quest Manages the quest and achievement tracking profile page |
|
| public |
C Settings Manages the settings profile page for audio, visual, and gameplay options |
|
| public |
C State Manages the player state profile page displaying equipment and stats |
|
client/lib
client/map
| summary | ||
| public |
C Map Manages the game world map data including tiles, collisions and tilesets |
|
client/network
| summary | ||
| public |
C Messages Handles incoming server packets and dispatches them to registered callbacks. |
|
| public |
C Socket Connect to the server via websockets |
|
| public |
V Packets: {"Handshake": *, "Intro": number, "Welcome": number, "Spawn": number, "List": number, "Who": number, "Equipment": number, "Ready": number, "Sync": number, "Movement": number, "Teleport": number, "Request": number, "Despawn": number, "Target": number, "Combat": number, "Animation": number, "Projectile": number, "Population": number, "Points": number, "Network": number, "Chat": number, "Command": number, "Inventory": number, "Bank": number, "Ability": number, "Quest": number, "Notification": number, "Blink": number, "Heal": number, "Experience": number, "Death": number, "Audio": number, "NPC": number, "Respawn": number, "Trade": number, "Enchant": number, "Guild": number, "Pointer": number, "PVP": number, "Click": number, "Warp": number, "Shop": number, "IntroOpcode": *, "EquipmentOpcode": *, "MovementOpcode": *, "TargetOpcode": *, "CombatOpcode": *, "ProjectileOpcode": *, "NetworkOpcode": *, "InventoryOpcode": *, "BankOpcode": *, "QuestOpcode": *, "NotificationOpcode": *, "NPCOpcode": *, "TradeOpcode": *, "EnchantOpcode": *, "GuildOpcode": *, "PointerOpcode": *, "ShopOpcode": *} Enumeration of all network packet types and their opcodes used for client-server communication |
|
client/renderer
| summary | ||
| public |
C Camera Tracks the visible viewport position and dimensions for the renderer |
|
| public |
C Grids Manages all spatial grids used for rendering, pathing, entities and items |
|
| public |
C Renderer Handles all canvas-based rendering for the game world |
|
| public |
C Tile Represents an animated tile on the map |
|
| public |
C Updater Drives per-frame game logic updates including entity movement, animations and UI state |
|
client/renderer/bubbles
| summary | ||
| public |
C Blob A type of bubble |
|
client/renderer/infos
| summary | ||
| public |
C Splat Represents a floating text label that fades out over time |
|
client/renderer/pointers
| summary | ||
| public |
C Pointer Represents a blinking on-screen pointer indicator |
|
client/utils
| summary | ||
| public |
Handles pathfinding for entities on the game grid |
|
| public |
C Queue Very useful file used for queuing various objects, most notably used in the info controller to queue objects to delete |
|
| public |
C Storage Manages persistent client-side storage using localStorage |
|
| public |
C Timer Tracks elapsed time to determine when a duration has passed |
|
| public |
Manages smooth value transitions over a fixed duration |
|
| public |
Returns true if the given number is an integer |
|
| public |
F isIntersecting(rectOne: Object, rectTwo: Object): Boolean Returns true if the two rectangles do not overlap |
|
| public |
V Detect: {"isIpad": *, "isAndroid": *, "isWindows": *, "isChromeOnWindows": *, "isCanaryOnWindows": *, "isEdgeOnWindows": *, "isFirefox": *, "isSafari": *, "isOpera": *, "isFirefoxAndroid": *, "isTablet": *, "iOSVersion": *, "androidVersion": *, "isAppleDevice": *} Utility object for detecting the user's browser and device environment |
|
| public |
V Modules: {"Orientation": *, "Types": *, "InputType": *, "Actions": *, "Hits": *, "Equipment": *, "Hovering": *, "Keys": *, "AudioTypes": *, "DamageColours": *, "Pointers": *} Shared game constants and enumerations used across the client |
|
| public |
CSS transition end event names for cross-browser compatibility |
|
| public |
Cross-browser requestAnimationFrame implementation with setTimeout fallback |
|
client/utils/__mocks__
| summary | ||
| public |
V Detect: {"isWindows": *, "isOpera": *, "isFirefoxAndroid": *} Jest mock for the Detect utility, providing stub browser detection methods |
|
server/data/combat
| summary | ||
| public |
Combat logic for the Great Squid boss |
|
| public |
C OgreLord Combat logic for the Ogre Lord boss |
|
| public |
Combat logic for the Pirate Captain boss |
|
| public |
C QueenAnt Combat logic for the Queen Ant boss |
|
| public |
Combat logic for the Skeleton King boss |
|
| public |
C Tenebris Combat logic for the Tenebris boss |
|
server/data/items
| summary | ||
| public |
C Flask Item class for health and mana flask consumables |
|
server/js/controllers
server/js/database
server/js/game/entity
| summary | ||
| public |
C Entity Base class for all entities in the game world |
|
server/js/game/entity/character
| summary | ||
| public |
Represents a character entity capable of combat and movement |
|
server/js/game/entity/character/combat
server/js/game/entity/character/mob
| summary | ||
| public |
C Mob Represents a mob (non-player enemy) character in the game world |
|
server/js/game/entity/character/player
server/js/game/entity/character/player/ability
| summary | ||
| public |
Manages the collection of abilities and shortcuts for a player |
|
server/js/game/entity/character/player/ability/misc
server/js/game/entity/character/player/containers
server/js/game/entity/character/player/containers/bank
| summary | ||
| public |
C Bank Represents a player's bank container for storing items |
|
server/js/game/entity/character/player/containers/inventory
| summary | ||
| public |
Represents the player's inventory container |
|
server/js/game/entity/character/player/enchant
| summary | ||
| public |
C Enchant Handles the item enchanting system for a player |
|
server/js/game/entity/character/player/equipment
| summary | ||
| public |
C Armour Represents a piece of armour equipment worn by the player |
|
| public |
C Boots Represents a pair of boots equipment worn by the player |
|
| public |
Base class representing a piece of equipment worn by the player |
|
| public |
C Pendant Represents a pendant equipment item worn by the player |
|
| public |
C Ring Represents a ring equipment item worn by the player |
|
| public |
C Weapon Represents a weapon equipment item wielded by the player |
|
server/js/game/entity/character/player/points
server/js/game/entity/character/player/profession
| summary | ||
| public |
Base class representing a player's profession |
|
server/js/game/entity/character/player/profession/impl
| summary | ||
| public |
Represents the foresting profession for a player |
|
server/js/game/entity/character/player/quest
| summary | ||
| public |
C Quest Base class representing a player quest |
|
server/js/game/entity/character/player/quest/misc
| summary | ||
| public |
Represents the "Bulky Situation" quest implementation |
|
| public |
Represents the introductory tutorial quest for new players |
|
| public |
C TheLie Represents "The Lie" quest implementation |
|
server/js/game/entity/npc
| summary | ||
| public |
C NPC Represents a non-player character in the game world |
|
server/js/game/entity/objects
server/js/map
server/js/minigames
| summary | ||
| public |
C Minigame Abstract base class representing a minigame |
|
server/js/network
| summary | ||
| public |
C Socket Abstract base class representing a network socket server |
|
server/js/util
| summary | ||
| public |
C Bot Manages automated bot players for testing and population purposes |
|
| public |
F requireItems(directory: String): Object Loads all JavaScript plugin files from the specified directory and returns a map of module paths |
|
| public |
V AbilityDictionary: {"data": *, "properties": *, "plugins": *, "getProperty": *, "setProperty": *, "getData": *, "setData": *, "idToString": *, "idToName": *, "stringToId": *, "exists": *, "setPlugins": *} Dictionary providing lookup and utility methods for ability definitions |
|
| public |
V ItemsDictionary: {"data": *, "properties": *, "plugins": *, "onCreate": *, "getProperty": *, "setProperty": *, "setData": *, "idToString": *, "idToName": *, "stringToId": *, "exists": *, "setPlugins": *, "getData": *, "hasPlugin": *, "isNewPlugin": *, "getLevelRequirement": *, "getWeaponLevel": *, "getArmourLevel": *, "getPendantLevel": *, "getRingLevel": *, "getBootsLevel": *, "isArcherWeapon": *, "isWeapon": *, "isArmour": *, "isPendant": *, "isRing": *, "isBoots": *, "getType": *, "isStackable": *, "isEdible": *, "getCustomData": *, "maxStackSize": *, "isShard": *, "isEnchantable": *, "getShardTier": *, "isEquippable": *, "healsHealth": *, "healsMana": *, "getHealingFactor": *, "getManaFactor": *} Dictionary providing lookup and utility methods for item definitions |
|
| public |
V MobsDictionary: {"data": *, "properties": *, "plugins": *, "getProperty": *, "setProperty": *, "getData": *, "setData": *, "idToString": *, "idToName": *, "stringToId": *, "exists": *, "setPlugins": *, "getXp": *, "hasCombatPlugin": *, "isNewCombatPlugin": *} Dictionary providing lookup and utility methods for mob definitions |
|
| public |
V NpcsDictionary: {"data": *, "properties": *, "plugins": *, "getProperty": *, "setProperty": *, "getData": *, "setData": *, "idToString": *, "idToName": *, "stringToId": *, "exists": *, "setPlugins": *, "getText": *, "getType": *} Dictionary providing lookup and utility methods for NPC definitions |
|
| public |
V ShopsDictionary: {"data": *, "properties": *, "plugins": *, "getProperty": *, "setProperty": *, "getData": *, "setData": *, "idToString": *, "idToName": *, "stringToId": *, "exists": *, "setPlugins": *, "isShopNPC": *, "getItems": *, "getItemCount": *, "getCost": *, "getCount": *} Dictionary providing lookup and utility methods for shop definitions |
|
tools/api
| summary | ||
| public |
Manages a Redis client connection for server registration |
|
Reference
Source
Test
