public DynamicDrawingVisual(IDrawStrategy strategy) : base(strategy) { if (strategy.Bounds is DynamicBounds) { (strategy.Bounds as DynamicBounds).PropertyChanged += boundsPropertyChange; } }
public void Draw(string text, IDrawStrategy drawStrategy) { if (this.IsMonochrome) { drawStrategy.DrawMonochrome(text); } else { drawStrategy.DrawColorful(text); } }
public Creature(string name, Vector2 worldIndex, MovementType movementType, Stat hitPoints, Stat mana, ITurnStrategy turnStrategy, IDrawStrategy drawStrategy, IDeathStrategy deathStrategy, IAttackStrategy attackStrategy, World world, IRemains remains) { MovementType = movementType; WorldIndex = worldIndex; Name = name; Health = hitPoints; Mana = mana; TurnStrategy = turnStrategy; DrawStrategy = drawStrategy; DeathStrategy = deathStrategy; AttackStrategy = attackStrategy; _world = world; Inventory = new List<IItem>(); Spells = new List<ISpell>(); TemporaryEffects = new List<ITemporaryEffect>(); ViewDistance = new Stat(15); Remains = remains; }
public Creature(string name, Vector2 worldIndex, MovementType movementType, Stat hitPoints, Stat mana, ITurnStrategy turnStrategy, IDrawStrategy drawStrategy, IDeathStrategy deathStrategy, IAttackStrategy attackStrategy, World world, IRemains remains) { MovementType = movementType; WorldIndex = worldIndex; Name = name; Health = hitPoints; Mana = mana; TurnStrategy = turnStrategy; DrawStrategy = drawStrategy; DeathStrategy = deathStrategy; AttackStrategy = attackStrategy; _world = world; Inventory = new List <IItem>(); Spells = new List <ISpell>(); TemporaryEffects = new List <ITemporaryEffect>(); ViewDistance = new Stat(15); Remains = remains; }
public Motherboard(RamMemory ramMemory, VideoCard videoCard, IDrawStrategy drawStrategy) { this.RamMemory = ramMemory; this.VideoCard = videoCard; this.drawStrategy = drawStrategy; }
public StaticDrawingVisual(IDrawStrategy str) { strategy = str; Transform = new TranslateTransform(strategy.Bounds.Left, strategy.Bounds.Top); }
public DrawManager(IDrawStrategy drawStrategy) { this.drawStrategy = drawStrategy; }