aboutsummaryrefslogtreecommitdiff
path: root/webAO/dom
diff options
context:
space:
mode:
authorCaleb <caleb.mabry.15@cnu.edu>2022-09-08 22:20:32 -0400
committerCaleb <caleb.mabry.15@cnu.edu>2022-09-08 22:20:32 -0400
commit776fe2f4241a67be354908df546f300f413a7d42 (patch)
treedeb962d3fa12966f0f7a29c9ed1784b3c83b5e40 /webAO/dom
parent23d4ef48f894adf601039fe574a0e7dfe918a105 (diff)
I'm so sorry
Diffstat (limited to 'webAO/dom')
-rw-r--r--webAO/dom/addEvidence.ts2
-rw-r--r--webAO/dom/addHPD.ts2
-rw-r--r--webAO/dom/addHPP.ts2
-rw-r--r--webAO/dom/areaClick.ts2
-rw-r--r--webAO/dom/callMod.ts2
-rw-r--r--webAO/dom/changeBackgroundOOC.ts2
-rw-r--r--webAO/dom/changeRoleOOC.ts2
-rw-r--r--webAO/dom/deleteEvidence.ts2
-rw-r--r--webAO/dom/editEvidence.ts2
-rw-r--r--webAO/dom/guilty.ts2
-rw-r--r--webAO/dom/initCE.ts2
-rw-r--r--webAO/dom/initWT.ts2
-rw-r--r--webAO/dom/musicListClick.ts2
-rw-r--r--webAO/dom/notGuilty.ts2
-rw-r--r--webAO/dom/onOOCEnter.ts3
-rw-r--r--webAO/dom/pickChar.ts2
-rw-r--r--webAO/dom/randomCharacterOOC.ts2
-rw-r--r--webAO/dom/redHPD.ts2
-rw-r--r--webAO/dom/redHPP.ts2
19 files changed, 19 insertions, 20 deletions
diff --git a/webAO/dom/addEvidence.ts b/webAO/dom/addEvidence.ts
index 89bb4d5..8a13f06 100644
--- a/webAO/dom/addEvidence.ts
+++ b/webAO/dom/addEvidence.ts
@@ -8,7 +8,7 @@ import { cancelEvidence } from "./cancelEvidence";
const evidence_select = <HTMLSelectElement>(
document.getElementById("evi_select")
);
- client.sendPE(
+ client.sender.sendPE(
(<HTMLInputElement>document.getElementById("evi_name")).value,
(<HTMLInputElement>document.getElementById("evi_desc")).value,
evidence_select.selectedIndex === 0
diff --git a/webAO/dom/addHPD.ts b/webAO/dom/addHPD.ts
index 12d1c07..8f7e1f7 100644
--- a/webAO/dom/addHPD.ts
+++ b/webAO/dom/addHPD.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Increment defense health point.
*/
export function addHPD() {
- client.sendHP(1, client.hp[0] + 1);
+ client.sender.sendHP(1, client.hp[0] + 1);
}
window.addHPD = addHPD; \ No newline at end of file
diff --git a/webAO/dom/addHPP.ts b/webAO/dom/addHPP.ts
index 4a1521c..1379f7c 100644
--- a/webAO/dom/addHPP.ts
+++ b/webAO/dom/addHPP.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Increment prosecution health point.
*/
export function addHPP() {
- client.sendHP(2, client.hp[1] + 1);
+ client.sender.sendHP(2, client.hp[1] + 1);
}
window.addHPP = addHPP; \ No newline at end of file
diff --git a/webAO/dom/areaClick.ts b/webAO/dom/areaClick.ts
index 6c3ff6b..1b0fe52 100644
--- a/webAO/dom/areaClick.ts
+++ b/webAO/dom/areaClick.ts
@@ -5,7 +5,7 @@ import { client } from '../client'
*/
export function area_click(el: HTMLElement) {
const area = client.areas[el.id.substr(4)].name;
- client.sendMusicChange(area);
+ client.sender.sendMusicChange(area);
const areaHr = document.createElement("div");
areaHr.className = "hrtext";
diff --git a/webAO/dom/callMod.ts b/webAO/dom/callMod.ts
index 0c52433..a2e2685 100644
--- a/webAO/dom/callMod.ts
+++ b/webAO/dom/callMod.ts
@@ -10,7 +10,7 @@ export function callMod() {
if (modcall == null || modcall === "") {
// cancel
} else {
- client.sendZZ(modcall);
+ client.sender.sendZZ(modcall);
}
}
window.callMod = callMod; \ No newline at end of file
diff --git a/webAO/dom/changeBackgroundOOC.ts b/webAO/dom/changeBackgroundOOC.ts
index ff5aaaa..1608ebe 100644
--- a/webAO/dom/changeBackgroundOOC.ts
+++ b/webAO/dom/changeBackgroundOOC.ts
@@ -20,7 +20,7 @@ export function changeBackgroundOOC() {
if (mode === "join") {
- client.sendOOC(`/${changeBGCommand.replace("$1", filename)}`);
+ client.sender.sendOOC(`/${changeBGCommand.replace("$1", filename)}`);
} else if (mode === "replay") {
client.sender.sendSelf(`BN#${filename}#%`);
}
diff --git a/webAO/dom/changeRoleOOC.ts b/webAO/dom/changeRoleOOC.ts
index ec7b65d..7d89bee 100644
--- a/webAO/dom/changeRoleOOC.ts
+++ b/webAO/dom/changeRoleOOC.ts
@@ -6,7 +6,7 @@ import { client } from '../client'
export function changeRoleOOC() {
const roleselect = <HTMLInputElement>document.getElementById("role_select");
- client.sendOOC(`/pos ${roleselect.value}`);
+ client.sender.sendOOC(`/pos ${roleselect.value}`);
client.sender.sendServer(`SP#${roleselect.value}#%`);
updateActionCommands(roleselect.value);
}
diff --git a/webAO/dom/deleteEvidence.ts b/webAO/dom/deleteEvidence.ts
index f007cdf..cd299e4 100644
--- a/webAO/dom/deleteEvidence.ts
+++ b/webAO/dom/deleteEvidence.ts
@@ -6,7 +6,7 @@ import { cancelEvidence } from "./cancelEvidence";
*/
export function deleteEvidence() {
const id = client.selectedEvidence - 1;
- client.sendDE(id);
+ client.sender.sendDE(id);
cancelEvidence();
}
window.deleteEvidence = deleteEvidence; \ No newline at end of file
diff --git a/webAO/dom/editEvidence.ts b/webAO/dom/editEvidence.ts
index 2cc4565..931caad 100644
--- a/webAO/dom/editEvidence.ts
+++ b/webAO/dom/editEvidence.ts
@@ -9,7 +9,7 @@ export function editEvidence() {
document.getElementById("evi_select")
);
const id = client.selectedEvidence - 1;
- client.sendEE(
+ client.sender.sendEE(
id,
(<HTMLInputElement>document.getElementById("evi_name")).value,
(<HTMLInputElement>document.getElementById("evi_desc")).value,
diff --git a/webAO/dom/guilty.ts b/webAO/dom/guilty.ts
index f7fa5b8..f008065 100644
--- a/webAO/dom/guilty.ts
+++ b/webAO/dom/guilty.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Declare the defendant not guilty
*/
export function guilty() {
- client.sendRT("judgeruling#1");
+ client.sender.sendRT("judgeruling#1");
}
window.guilty = guilty; \ No newline at end of file
diff --git a/webAO/dom/initCE.ts b/webAO/dom/initCE.ts
index 87bc256..fd57d74 100644
--- a/webAO/dom/initCE.ts
+++ b/webAO/dom/initCE.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Declare cross examination.
*/
export function initCE() {
- client.sendRT("testimony2");
+ client.sender.sendRT("testimony2");
}
window.initCE = initCE; \ No newline at end of file
diff --git a/webAO/dom/initWT.ts b/webAO/dom/initWT.ts
index b6268fc..d99fc3e 100644
--- a/webAO/dom/initWT.ts
+++ b/webAO/dom/initWT.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Declare witness testimony.
*/
export function initWT() {
- client.sendRT("testimony1");
+ client.sender.sendRT("testimony1");
}
window.initWT = initWT; \ No newline at end of file
diff --git a/webAO/dom/musicListClick.ts b/webAO/dom/musicListClick.ts
index 8fd3be5..2243553 100644
--- a/webAO/dom/musicListClick.ts
+++ b/webAO/dom/musicListClick.ts
@@ -7,7 +7,7 @@ export function musiclist_click(_event: Event) {
const playtrack = (<HTMLInputElement>(
document.getElementById("client_musiclist")
)).value;
- client.sendMusicChange(playtrack);
+ client.sender.sendMusicChange(playtrack);
// This is here so you can't actually select multiple tracks,
// even though the select tag has the multiple option to render differently
diff --git a/webAO/dom/notGuilty.ts b/webAO/dom/notGuilty.ts
index e15ee4b..95b830b 100644
--- a/webAO/dom/notGuilty.ts
+++ b/webAO/dom/notGuilty.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Declare the defendant not guilty
*/
export function notguilty() {
- client.sendRT("judgeruling#0");
+ client.sender.sendRT("judgeruling#0");
}
window.notguilty = notguilty; \ No newline at end of file
diff --git a/webAO/dom/onOOCEnter.ts b/webAO/dom/onOOCEnter.ts
index a6bde4c..d7ec21b 100644
--- a/webAO/dom/onOOCEnter.ts
+++ b/webAO/dom/onOOCEnter.ts
@@ -4,9 +4,8 @@ import { client } from "../client";
* @param {KeyboardEvent} event
*/
export function onOOCEnter(event: KeyboardEvent) {
- console.log('FUCK')
if (event.keyCode === 13) {
- client.sendOOC(
+ client.sender.sendOOC(
(<HTMLInputElement>document.getElementById("client_oocinputbox")).value
);
(<HTMLInputElement>document.getElementById("client_oocinputbox")).value =
diff --git a/webAO/dom/pickChar.ts b/webAO/dom/pickChar.ts
index 5773125..82fb6af 100644
--- a/webAO/dom/pickChar.ts
+++ b/webAO/dom/pickChar.ts
@@ -11,6 +11,6 @@ export function pickChar(ccharacter: number) {
document.getElementById("client_waiting")!.style.display = "none";
document.getElementById("client_charselect")!.style.display = "none";
}
- client.sendCharacter(ccharacter);
+ client.sender.sendCharacter(ccharacter);
}
window.pickChar = pickChar; \ No newline at end of file
diff --git a/webAO/dom/randomCharacterOOC.ts b/webAO/dom/randomCharacterOOC.ts
index 507c3f0..657a474 100644
--- a/webAO/dom/randomCharacterOOC.ts
+++ b/webAO/dom/randomCharacterOOC.ts
@@ -3,6 +3,6 @@ import { client } from '../client'
* Random character via OOC.
*/
export function randomCharacterOOC() {
- client.sendOOC(`/randomchar`);
+ client.sender.sendOOC(`/randomchar`);
}
window.randomCharacterOOC = randomCharacterOOC; \ No newline at end of file
diff --git a/webAO/dom/redHPD.ts b/webAO/dom/redHPD.ts
index 7b47c23..e228d21 100644
--- a/webAO/dom/redHPD.ts
+++ b/webAO/dom/redHPD.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Decrement defense health point.
*/
export function redHPD() {
- client.sendHP(1, client.hp[0] - 1);
+ client.sender.sendHP(1, client.hp[0] - 1);
}
window.redHPD = redHPD; \ No newline at end of file
diff --git a/webAO/dom/redHPP.ts b/webAO/dom/redHPP.ts
index fb6711e..efde941 100644
--- a/webAO/dom/redHPP.ts
+++ b/webAO/dom/redHPP.ts
@@ -4,6 +4,6 @@ import { client } from "../client";
* Decrement prosecution health point.
*/
export function redHPP() {
- client.sendHP(2, client.hp[1] - 1);
+ client.sender.sendHP(2, client.hp[1] - 1);
}
window.redHPP = redHPP; \ No newline at end of file