public Wall(int x, int y) { X = x; Y = y; ownHeight = GameModel.wallImage.Height; ownWidth = GameModel.wallImage.Width; wallView = new WallView(new Point(X, Y), Properties.Resources.Wall); }
public List <WallView> AddWallViews(Panel p_Map) { List <WallView> listViewWall = new List <WallView>(); for (int i = 0; i < gameModel.listWall.Count; i++) { WallView viewWall = new WallView(p_Map); viewWall.Model = gameModel.listWall[i]; viewWall.Model.MapSize = new Point(p_Map.Width, p_Map.Height); listViewWall.Add(viewWall); } return(listViewWall); }