Exemplo n.º 1
0
 public void CopyBooks(Archive archive)
 {
     books = new List<Book>();
     foreach (Book b in archive.books)
     {
         books.Add(b);
     }
 }
Exemplo n.º 2
0
        public Player(TextureManager textureManager, int playerID)
        {
            position = GetPosition(playerID);
            archive = new Archive(textureManager, position + offset, 0.6f, 2, 5);
            this.playerID = playerID;
            publishMenu = new PublishMenu(textureManager, position + offset, 0.75f, playerID);
            activeTab = archive;

            background = textureManager.playerBackground;
            doneTexture = textureManager.doneTexture;

            budget = 0;
        }
Exemplo n.º 3
0
 public Archive(Archive archive)
     : base(archive)
 {
     books = new List<Book>();
     foreach (Book b in archive.books)
     {
         books.Add(b);
     }
     rows = archive.rows;
     columns = archive.columns;
     numOfShelves = archive.numOfShelves;
     activeShelf = 0;
 }
Exemplo n.º 4
0
 public void CopyArchive(Archive archive)
 {
     this.archive.CopyBooks(archive);
 }
Exemplo n.º 5
0
 public BookManager(TextureManager textureManager)
 {
     archive = new Archive(textureManager, new Vector2(540, 280), 0.75f, 2, 3);
     bookTexture = textureManager.bookTexture;
     detailTexture = textureManager.detailTexture;
 }