all repos — WarBot2020 @ 56492d3510e181775ae1a37b7fb98dbbebd4c118

Bootleg version of "WorldWarBot 2020" done in Java and without a map.

siciliaguerrabot2020/Calendario/Data.java (view raw)

 1/*
 2 * To change this license header, choose License Headers in Project Properties.
 3 * To change this template file, choose Tools | Templates
 4 * and open the template in the editor.
 5 */
 6package siciliaguerrabot2020.Calendario;
 7
 8/**
 9 *
10 * @author Marco
11 */
12public class Data {
13    private final int giorno;
14    private final int mese;
15    private final int anno;
16
17    public Data(int giorno, int mese, int anno) {
18        this.giorno = giorno;
19        this.mese = mese;
20        this.anno = anno;
21    }
22
23    public int getGiorno() {
24        return giorno;
25    }
26
27    public int getMese() {
28        return mese;
29    }
30
31    public int getAnno() {
32        return anno;
33    }
34
35    public String getCompact() {
36        return giorno + "/" + mese + "/" + anno;
37    }
38
39    @Override
40    public String toString() {
41        return "Data{" + "giorno=" + giorno + ", mese=" + mese + ", anno=" + anno + '}';
42    }
43}