rt

An obligatory Java Project
Log | Files | Refs | LICENSE

commit 1b45978d4d713907e39096398fbc452215dc6a56
parent fa78f6350ef7578ed7f6042fe500cf40fa70c603
Author: zerous Naveen Narayanan <zerous@nocebo.space>
Date:   Fri, 13 Dec 2019 01:19:15 +0100

Add game class to obviate limitation on number of users

Diffstat:
MMakefile | 7+++++--
Agame.java | 18++++++++++++++++++
2 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile @@ -1,4 +1,4 @@ -all: server client util acc servertask script group clienttask +all: server client util acc servertask script group clienttask game server: javac server.java @@ -24,8 +24,11 @@ script: group: javac group.java +game: + javac game.java + .PHONY: clean run clean: - rm server.class client.class util.class acc.class servertask.class script.class clienttask.class + rm server.class client.class util.class acc.class servertask.class script.class clienttask.class game.class diff --git a/game.java b/game.java @@ -0,0 +1,18 @@ +package space.nocebo; + +public class game { + private script s; + private group g; + + public game(script sc, group gr) { + g = gr; + s = sc; + } + + public boolean isThisMyGame(group gr) { + if (gr.getGid().compareTo(g.getGid()) == 0) + return true; + else + return false; + } +}