C# Class 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
ファイルを表示 Open project: nezbo/Descent

Private Properties

Property Type Description
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

Public Methods

Method Description
LoadContent ( Game game ) : void

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

LoadMap ( Game game ) : void

Private Methods

Method Description
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

Method Details

LoadContent() public static method

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

LoadMap() public static method

public static LoadMap ( Game game ) : void
game Game
return void