C# 클래스 Descent.Model.FullModel

Full Model has access to the entire model of the program, and the responsebility of loading/creating the model entities. When the game needs instances of monsters, dice or heroes, they call the FullModel which then returns a Holds references to all model related classes
파일 보기 프로젝트 열기: nezbo/Descent

Private Properties

프로퍼티 타입 설명
GetDice Dice
GetDice Dice
GetEquipment Equipment
GetHero Player.Hero
GetMarker Marker
GetMonster Monster
GetOverlordCard OverlordCard
GetTreasure Treasure
LoadChests void
LoadDice void
LoadEquipment Equipment
LoadEquipment void
LoadHeroes void
LoadLegendaryMonsters void
LoadMonsters void
LoadOther void
LoadOverlordCards void
LoadSkillCards void
LoadTreasures void

공개 메소드들

메소드 설명
LoadContent ( Game game ) : void

Load all content! This includes monsters, heroes, cards, equipment, dice and the map.

LoadMap ( Game game ) : void

비공개 메소드들

메소드 설명
GetDice ( EDice dice ) : Dice
GetDice ( string dice ) : Dice
GetEquipment ( int id ) : Equipment
GetHero ( int id ) : Player.Hero
GetMarker ( string name, string other ) : Marker
GetMonster ( int id ) : Monster
GetOverlordCard ( int id ) : OverlordCard
GetTreasure ( int id ) : Treasure
LoadChests ( Game game, StreamReader reader ) : void

LoadDice ( Game game ) : void

Loads all dice from

LoadEquipment ( string data ) : Equipment
LoadEquipment ( Game game ) : void
LoadHeroes ( Game game ) : void
LoadLegendaryMonsters ( Game game, StreamReader reader ) : void
LoadMonsters ( Game game ) : void

Loads the monsters from the file monsters.txt

LoadOther ( Game game, StreamReader reader, Board board ) : void
LoadOverlordCards ( Game game ) : void
LoadSkillCards ( Game game ) : void
LoadTreasures ( Game game, StreamReader reader ) : void

메소드 상세

LoadContent() 공개 정적인 메소드

Load all content! This includes monsters, heroes, cards, equipment, dice and the map.
public static LoadContent ( Game game ) : void
game Game /// The game object ///
리턴 void

LoadMap() 공개 정적인 메소드

public static LoadMap ( Game game ) : void
game Game
리턴 void