Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package org.owendev.object;
- import java.util.ArrayList;
- import java.util.List;
- public class SalaHG {
- int kills,tempo,topkills,topks,players;
- String name;
- List<String>spec=new ArrayList<>();
- List<String>jogador=new ArrayList<>();
- public SalaHG(String name, int players,int kills,int topkills,int topks,int tempo,String player, String spec){
- this.kills=kills;
- this.topkills=topkills;
- this.topks=topks;
- this.name=name;
- this.tempo=tempo;
- this.players=players;
- if(spec!=null)
- this.spec.add(spec);
- if(player!=null)
- this.jogador.add(player);
- }
- public String getName() {
- return this.name;
- }
- public int getTopKS() {
- return this.topks;
- }
- public int getTopKills() {
- return this.topkills;
- }
- public int getKills() {
- return this.kills;
- }
- public int getTempo() {
- return this.tempo;
- }
- public void addTempo(int tempo){
- this.tempo+=tempo;
- }
- public void removeTempo(int tempo){
- this.tempo-=tempo;
- }
- public void setTempo(int tempo){
- this.tempo=tempo;
- }
- public void addKills(int kills){
- this.kills+=kills;
- }
- public void setKills(int setkills){
- this.kills=setkills;
- }
- public void addtopKills(int kills){
- this.topkills+=kills;
- }
- public void settopKills(int setkills){
- this.topkills=setkills;
- }
- public void addtopKs(int kills){
- this.topks+=kills;
- }
- public void settopKs(int setkills){
- this.topks=setkills;
- }
- public List<String> getSpecs(){
- return this.spec;
- }
- public void addSpec(String c){
- this.spec.add(c);
- }
- public void removeSpec(String c){
- this.spec.remove(c);
- }
- public boolean isSpec(String c){
- if(this.spec.contains(c)){
- return true;
- }else{
- return false;
- }
- }
- public List<String> getjogadors(){
- return this.jogador;
- }
- public void addjogador(String c){
- this.jogador.add(c);
- this.players++;
- }
- public void removejogador(String c){
- this.jogador.remove(c);
- this.players--;
- }
- public boolean isjogador(String c){
- if(this.jogador.contains(c)){
- return true;
- }else{
- return false;
- }
- }
- public int getPlayers() {
- return this.players;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement