JS Classes - JasXSL/sexticuffs GitHub Wiki
These are javascript classes (obivously on the global scope)
Classname | Args | Extends | Description |
---|---|---|---|
Game | - | - | Main handler for the app. Handles preloading, multiplayer icons, menu, character loading |
GameAudio | - | - | Handles music and sound effects. |
AI | - | - | Static class handling AI play. |
AIChat | character | - | Statically contains a library of AI Chat texts. Also instantiated on NPCs, accepting custom events and outputting AI chats. Contains the subclass AIChat.asset which extends Asset and contains a text and conditions for the text. |
Battle | Page, Campaign, CampaignStage | - | Class which is only used by the battle page. Used to separate battle mechanics from page asset loading, since the code is pretty big. Global variable "B" refers to the active battle object. |
Asset | Variable | - | Base class for most asset types. Adding features such as UUID generation, clone, get, search, insert |
Character | data | Asset | A character, including NPCs and PCs. It should be noted that Game.player is not the same as the character used in battles, to prevent battles and DMs from permanently affecting your save data. |
Armor | data | Asset | Armor worn by a character. |
Ability | data, parent | Asset | An ability that can be used in a battle. Parent is the character that has this ability. |
Effect | data | Asset | An effect. Can be instant or placed on a player. Contains EffectData. |
EffectData | data, parent | Asset | Parent is the effect this EffectData resides in. Contains triggers and effect data that should be run when triggers are hit, or passively if no triggers exist. |
Condition | data | Asset | Used everywhere to limit things such as texts, ability use, effect triggers etc by various types. |
Text | data | Asset | A text entry that can be output during a battle. |
Race | data | Asset | The species of a character. |
Challenge | data | Asset | A challenge. |
ChallengeWing | data | Asset | Contains a set of bosses and a reward. May be deprecated in the future. |
ChallengeStage | data | Asset | Essentially a boss fight or encounter. |
ChallengeTalkingHead | data | Asset | One of those npc icon popups with texts. Such as the announcer. |
ChallengeReward | data | Asset | Contains information about what a wing reward should give the players. |