all repos — WarBot2020 @ d01ffe12699cb130798de330a0fd5e9f0a49076b

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

siciliaguerrabot2020/Guerra/Territorio.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.Guerra;
 7
 8/**
 9 *
10 * @author Bi-Rabittoh
11 */
12public class Territorio {
13    private final String nome;
14    private Comune proprietario;
15    private final Centroide pos;
16
17    public Territorio(String nome, Comune proprietario, Centroide pos) {
18        this.nome = nome;
19        this.proprietario = proprietario;
20        this.pos = pos;
21    }
22    
23    public Comune getProprietario() {
24        return proprietario;
25    }
26
27    public void setProprietario(Comune proprietario) {
28        this.proprietario = proprietario;
29    }
30
31    public Centroide getPos() {
32        return pos;
33    }
34
35    public String getNome() {
36        return nome;
37    }
38    
39    
40}