Пример #1
0
 public Creature(GameUniverse g) : base(g)
 {
     //
     CurrentHealth = 3;
     //
     StatusTracker = g.CreatureRules.CreateStatusTracker(this);
 }
Пример #2
0
 public MultiPointMapEvent(List <Point> points, GameUniverse g) : base(g)
 {
     if (points == null)
     {
         throw new ArgumentNullException(nameof(points));
     }
     this.Points = points;
 }
Пример #3
0
        public DungeonMap(GameUniverse g) : base(g)
        {
            CurrentDepthSeed = MapRNG.GetNext();
            Func <Point, bool> isInBounds = p => p.X >= 0 && p.X < Width && p.Y >= 0 && p.Y < Height;

            Creatures             = new Grid <Creature, Point>(isInBounds);
            Tiles                 = new PointArray <TileType>(Width, Height);
            Features              = new FeatureMap(Width, Height);
            Traps                 = new Dictionary <Point, Trap>();
            Items                 = new Grid <Item, Point>(isInBounds);
            NeverInLineOfSight    = new PointArray <bool>(Width, Height);
            Light                 = new LightMap(g);
            DirectionPlayerExited = new PointArray <Dir8>(Width, Height);
            //todo, more here?
            Seen = new PointArray <bool>(Width, Height);
        }
 public PlayerTurnEvent(GameUniverse g) : base(g)
 {
 }
Пример #5
0
 public int LightRadius;         //todo, pretty sure that light radius won't stay here
 public CreatureBase(GameUniverse g) : base(g)
 {
 }
Пример #6
0
 public SinglePointMapEvent(Point point, GameUniverse g) : base(g)
 {
     this.Point = point;
 }
Пример #7
0
 public IceCrackingEvent(List <Point> points, GameUniverse g) : base(points, g)
 {
 }
Пример #8
0
 public CheckForIceCrackingEvent(Point point, GameUniverse g) : base(point, g)
 {
 }
Пример #9
0
 public MoveToNextLevelEvent(GameUniverse g) : base(g)
 {
 }
Пример #10
0
 public IceBreakingEvent(Point point, GameUniverse g) : base(point, g)
 {
 }
Пример #11
0
 public GameObject(GameUniverse g)
 {
     GameUniverse = g;
 }
Пример #12
0
 public SimpleEvent(GameUniverse g) : base(g)
 {
     NoCancel = true;
 }
Пример #13
0
 public PlayerCancelDecider(GameUniverse g) : base(g)
 {
 }
Пример #14
0
 public Event(GameUniverse g) : base(g)
 {
 }
Пример #15
0
 public LightMap(GameUniverse g) : base(g)
 {
     lightSources      = new MultiValueDictionary <Point, int>();
     tempRemovedLights = new MultiValueDictionary <Point, int>();
     cellBrightness    = new PointArray <int>(Width, Height);
 }
Пример #16
0
		public Item(GameUniverse g) : base(g) { }