Example #1
0
        public void build_structure(Structure S, Team new_team)
        {
            if(new_team != null)
                team = new_team;

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

            team = null;
            Building = null;
        }
Example #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);
 }
Example #4
0
 public void add_structure(Structure s)
 {
     GM.add_structure(s);
 }
Example #5
0
 public void add_structure(Structure s)
 {
     structures.Add(s);
     add_collidable(s);
 }
Example #6
0
 public void remove_structure(Structure s)
 {
     if (s == null)
         return;
     structures.Remove(s);
 }