all repos — WarBot2020 @ eaa213108510af34bac946aa2f2aacc00940d77c

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

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;
 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}