Ejemplo n.º 1
0
 public Event(Scene scene, Playing playing, TextBox textBox, int id, string tag, string command)
 {
     this.scene = scene;
     this.playing = playing;
     this.textBox = textBox;
     this.id = id;
     this.tag = tag;
     this.command = command;
 }
Ejemplo n.º 2
0
        public Scene(Playing playing, TextBox textBox)
        {
            this.textBox = textBox;
            this.playing = playing;
            this.constructor = new Constructor(string.Format("Level{0}.csv", level));
            dimensions = constructor.getDimensions();

            string[] ioArray = File.ReadAllText(string.Format("Content//Level{0}Event.csv", level)).Split('\n');
            triggerArray = new int[(ioArray[0].Length + 1) / 2, ioArray.GetLength(0)];
            for (int i = 0; i < ioArray.Length; i++)
            {
                string[] lineSplit = ioArray[i].Split(',');
                for (int j = 0; j < lineSplit.Length; j++)
                {
                    triggerArray[j, i] = Convert.ToInt16(lineSplit[j]);
                }
            }
            processXML("jail", level);
        }
Ejemplo n.º 3
0
 public Unpaused(Playing playing, Scene scene, Player player, List<Enemy> enemies, List<Item> items, List<Particle> particles, List<Projectile> projectiles, TextBox textBox, List<Box> boxes, List<StaticObject> staticObjects)
 {
     this.playing = playing;
     this.player = player;
     this.enemies = enemies;
     this.projectiles = projectiles;
     this.items = items;
     this.particles = particles;
     this.scene = scene;
     this.textBox = textBox;
     this.boxes = boxes;
     this.staticObjects = staticObjects;
     this.tag = "Unpaused";
 }