Esempio n. 1
0
        public void build_structure(Structure S, Team new_team)
        {
            if(new_team != null)
                team = new_team;

            Building = S;
        }
Esempio n. 2
0
        public void destroy_structure()
        {
            if(has_building())
                Building.mark_for_deletion();

            team = null;
            Building = null;
        }
Esempio n. 3
0
 public Tile(Tile rhs)
 {
     this.tile_size = rhs.tile_size;
     this.Building = rhs.Building;
     this.center = rhs.center;
     this.size = rhs.size;
     this.col = rhs.col;
     this.row = rhs.row;
     this.rotation = new Quaternion(0, 0, 1, 0);
 }
Esempio n. 4
0
 public void add_structure(Structure s)
 {
     GM.add_structure(s);
 }
Esempio n. 5
0
 public void add_structure(Structure s)
 {
     structures.Add(s);
     add_collidable(s);
 }
Esempio n. 6
0
 public void remove_structure(Structure s)
 {
     if (s == null)
         return;
     structures.Remove(s);
 }