예제 #1
0
 public LightSequenceBar(LightSequence sequence, Point pivot, Dimension tileSize, int indent)
     : base(Geometry.ConstructRectangle(pivot, tileSize))
 {
     this.sequence = sequence;
     this.tileSize = tileSize;
     this.indent = indent;
 }
예제 #2
0
 public HealEffect(string description, LightSequence sequence, bool isKnown, int range, int increment)
     : base(description, sequence,
         delegate(Building building) {
             return HealPeople(building, range, increment);
         }, isKnown)
 {
     this.range = range;
     this.increment = increment;
 }
예제 #3
0
 public BuildingEffect(string description, LightSequence sequence, DoEffect effectHandle, bool isKnown)
 {
     this.description = description;
     this.sequence = sequence;
     this.effectHandle = effectHandle;
     this.isKnown = isKnown;
 }
예제 #4
0
        public override void Initialize(int x, int y, int width, int height, Texture2D texture)
        {
            base.Initialize(x, y, width, height, texture);

            lightBeams = new LightSequence();
            triggeredSequences = new HashSet<LightSequence>();
            activatedEffect = 0;
            effectDisplay = new LightSequenceBar(new LightSequence(), new Point(BoundingBox.X + 30, BoundingBox.Y + 30), new Dimension(10, 10), 5);
            effectDisplay.LayerDepth = Layer.Depth["LightSequence"];

            base.dimension = new Dimension(2, 2);
            base.DeferDraw = true;
        }