Added comments and readme
This commit is contained in:
parent
1d632252bf
commit
e25c8606d9
8 changed files with 252 additions and 16 deletions
|
|
@ -15,7 +15,7 @@ let teamB = {
|
|||
};
|
||||
let sideswitch = false;
|
||||
|
||||
// Function prototypes
|
||||
// Funktionsübersicht (Prototypen ohne Implementierung — nur zur Übersicht)
|
||||
function setEnabled(status) {};
|
||||
function configTeam(team, name, name2, isSpielgemeinschaft) {};
|
||||
function setScore(team, score) {};
|
||||
|
|
@ -30,6 +30,7 @@ function setEnabled(status) {
|
|||
enabled = status;
|
||||
}
|
||||
|
||||
// Setzt Namen und Spielgemeinschafts-Status eines Teams
|
||||
function configTeam(team, name, name2, isSpielgemeinschaft) {
|
||||
if(team == "teamA") {
|
||||
teamA.name = name;
|
||||
|
|
@ -51,7 +52,7 @@ function setScore(team, score) {
|
|||
}
|
||||
}
|
||||
|
||||
// Increment score by one
|
||||
// Ändert den Score eines Teams um 1 — Richtung "inc" (erhöhen) oder "dec" (verringern)
|
||||
function alterScore(team, dir) {
|
||||
if(team == "teamA") {
|
||||
if(dir == "inc") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue