Skip to content

Commit

Permalink
more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mattieFM committed Apr 19, 2024
1 parent fe47ec0 commit dae67a5
Show file tree
Hide file tree
Showing 12 changed files with 71 additions and 3 deletions.
4 changes: 4 additions & 0 deletions www/mods/_multiplayer/gameOverScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ MATTIE.CmdManager.spectate = 'MATTIE_Spectate';
MATTIE.TextManager.bornAnew = 'Be born anew';
MATTIE.CmdManager.bornAnew = 'rebirth';

/**
* @description the class for the game over screen scene.
* @class
*/
MATTIE.scenes.multiplayer.Scene_GameOver = function () {
this.initialize.apply(this, arguments);
};
Expand Down
1 change: 1 addition & 0 deletions www/mods/_multiplayer/hostMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ MATTIE.CmdManager.show = 'MATTIE_Show_Hide';
/**
* @description The scene for hosting a multiplayer game
* @extends Scene_Base
* @class
*/
MATTIE.scenes.multiplayer.host = function () {
this.initialize.apply(this, arguments);
Expand Down
1 change: 1 addition & 0 deletions www/mods/_multiplayer/joinMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ MATTIE.CmdManager.reconnect = 'MATTIE_Reconnect';
/**
* @description The scene for hosting a multiplayer game
* @extends Scene_Base
* @class
*/
MATTIE.scenes.multiplayer.join = function () {
this.initialize.apply(this, arguments);
Expand Down
1 change: 1 addition & 0 deletions www/mods/_multiplayer/lobby.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ MATTIE.helpOncePerSession = false;
/**
* @description The scene for hosting a multiplayer game
* @extends MATTIE.scenes.multiplayer.base
* @class
*/
MATTIE.scenes.multiplayer.lobby = function () {
this.initialize.apply(this, arguments);
Expand Down
16 changes: 16 additions & 0 deletions www/mods/_multiplayer/multiCombatMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ Sprite_Actor.prototype.setActorHome = function (index) {
this.setHome(50 + xOffset, Graphics.boxHeight - MATTIE.multiplayer.multiCombat.minCharHeight - rowOffset - yOffset);
};

/**
* @description a window that displays the current number of alies in the fight with you.
* @class
*/
MATTIE.windows.multiplayer.multiCombat.AllyCount = function () {
this.initialize.apply(this, arguments);
};
Expand Down Expand Up @@ -483,6 +487,10 @@ Window_BattleActor.prototype.actor = function () {
// SPRITE Net Ex Turn
//-----------------------------------------------------------------------------

/**
* @description a window that displays the extra turn pop up
* @class
*/
MATTIE.multiplayer.SpriteNetExTurn = function () {
this.initialize.apply(this, arguments);
};
Expand Down Expand Up @@ -511,6 +519,10 @@ MATTIE.multiplayer.SpriteNetExTurn.prototype.update = function () {
// SPRITE Ready
//-----------------------------------------------------------------------------

/**
* @description a window that displays the ready popup in battle
* @class
*/
MATTIE.multiplayer.SpriteReady = function () {
this.initialize.apply(this, arguments);
};
Expand Down Expand Up @@ -539,6 +551,10 @@ MATTIE.multiplayer.SpriteReady.prototype.update = function () {
// SPRITE Awaiting Allies
//-----------------------------------------------------------------------------

/**
* @description a window that displays the waiting popup in battle
* @class
*/
MATTIE.multiplayer.SpriteWaiting = function () {
this.initialize.apply(this, arguments);
};
Expand Down
23 changes: 22 additions & 1 deletion www/mods/_multiplayer/multiplayerMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ MATTIE.CmdManager.return = 'MATTIE_return';
MATTIE.CmdManager.newGame = 'MATTIE_New_Game';
MATTIE.CmdManager.loadGame = 'MATTIE_Load_Game';

/**
* @description a scene that extends scene base but loads my bitmap instead, this is not really needed and is just
* legacy code left over from when I didn't really understand the engine
* @class
*/
MATTIE.scenes.multiplayer.base = function () {
this.initialize.apply(this, arguments);
};
Expand All @@ -33,7 +38,10 @@ MATTIE.scenes.multiplayer.base.prototype.createBackground = function () {
/**
* main scene
*/

/**
* @description a scene that displays the username input and the multiplayer host/join btns
* @class
*/
MATTIE.scenes.multiplayer.main = function () {
this.initialize.apply(this, arguments);
};
Expand Down Expand Up @@ -93,6 +101,10 @@ MATTIE.scenes.multiplayer.main.prototype.createBackground = function () {
/**
* main window
*/
/**
* @description a window the main multiplayer join/host btns
* @class
*/
MATTIE.windows.multiplayer.Main = function () {
this.initialize.apply(this, arguments);
};
Expand All @@ -109,6 +121,10 @@ MATTIE.windows.multiplayer.Main.prototype.makeCommandList = function () {
/**
* main window
*/
/**
* @description a window that displays the load/new game buttons when a multiplayer game is starting
* @class
*/
MATTIE.windows.multiplayer.StartWin = function () {
this.initialize.apply(this, arguments);
};
Expand All @@ -124,6 +140,10 @@ MATTIE.windows.multiplayer.StartWin.prototype.makeCommandList = function () {
/**
* new game win
*/
/**
* @description a window that displays the load/new game buttons when a multiplayer game is starting.
* @class
*/
MATTIE.windows.multiplayer.NewGameWin = function () {
this.initialize.apply(this, arguments);
};
Expand All @@ -143,6 +163,7 @@ MATTIE.windows.multiplayer.NewGameWin.prototype.makeCommandList = function () {
* // Scene_DevItems
* @description a scene to spawn in items for dev
* @extends Scene_Item
* @class
*/
MATTIE.scenes.Scene_DropItem = function () {
this.initialize.apply(this, arguments);
Expand Down
10 changes: 8 additions & 2 deletions www/mods/_multiplayer/netControllerV2/models/netActors.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ DataManager.extractSaveContents = function (contents) {
console.log('could not create local player');
}
};
/** a simple class containing the game actor and the assosiated dataActor id (for clean up) */
/**
* @description a simple class containing the game actor and the assosiated dataActor id (for clean up)
* @class
*/
MATTIE.multiplayer.NetActor = function () {
this.initialize.apply(this, arguments);
};
Expand All @@ -36,7 +39,10 @@ MATTIE.multiplayer.NetActor.prototype.initialize = function (gameActor, dataActo
this.baseActorId = baseActorId;
};

/** the wrapper class of an array of net actors */
/**
* @description a wrapper class for an array of net actors
* @class
*/
MATTIE.multiplayer.NetActors = function () {
this.initialize.apply(this, arguments);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ MATTIE.menus.multiplayer = MATTIE.menus.multiplayer || {};
MATTIE.scenes.multiplayer = MATTIE.scenes.multiplayer || {};
MATTIE.windows.multiplayer = MATTIE.windows.multiplayer || {};

/**
* @description a class that extends a game_follower for net players
* @class
*/
MATTIE.multiplayer.NetFollower = function () {
this.initialize.apply(this, arguments);
};
Expand Down Expand Up @@ -65,6 +69,10 @@ MATTIE.multiplayer.NetFollower.prototype.chaseCharacter = function (character) {
}
};

/**
* @description a wrapper class for an array of netFollowers
* @class
*/
MATTIE.multiplayer.NetFollowers = function () {
this.initialize.apply(this, arguments);
};
Expand Down
4 changes: 4 additions & 0 deletions www/mods/_multiplayer/netControllerV2/playerRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ MATTIE.multiplayer.renderer._renderNetPlayers = function (target) {
//
// The sprite for displaying a character.

/**
* @description a simple wrapper class for spriteChar to display net sprites
* @class
*/
MATTIE.multiplayer.NetSpriteChar = function () {
this.initialize.apply(this, arguments);
};
Expand Down
1 change: 1 addition & 0 deletions www/mods/_multiplayer/spectateScene.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ MATTIE.multiplayer.spectate.init = Scene_Map.prototype.initialize;
* Scene_Spectate
* @description a scene for spectating after death
* @extends Scene_Map
* @class
*/

MATTIE.scenes.multiplayer.Scene_Spectate = function () {
Expand Down
4 changes: 4 additions & 0 deletions www/mods/_multiplayer/startGameMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ MATTIE.windows.multiplayer = MATTIE.windows.multiplayer || {};
* start game scene
*/

/**
* @description a scene to display when starting the game.
* @class
*/
MATTIE.scenes.multiplayer.startGame = function () {
this.initialize.apply(this, arguments);
};
Expand Down
1 change: 1 addition & 0 deletions www/mods/commonLibs/_common/API_CORE/troopAPI.js
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ Game_Troop.prototype.meetsConditions = function (page) {
* @param {int} xOffset, screen x offset for entire troop
* @param {int} yOffset, screen y offset for entire troop
* @returns {MATTIE.troopAPI.RuntimeTroop}
* @class
* */
MATTIE.troopAPI.RuntimeTroop = function () {
this.initialize.apply(this, arguments);
Expand Down

0 comments on commit dae67a5

Please sign in to comment.