Exemple #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;
 }
Exemple #2
0
 public Transition(Playing playing, Scene scene, SpriteBatch spriteBatch, SpriteFont symbols,Texture2D topFade, Texture2D bottomFade)
 {
     this.bottomFade = bottomFade;
     this.topFade = topFade;
     this.symbols = symbols;
     this.spriteBatch = spriteBatch;
     this.playing = playing;
     this.scene = scene;
 }
Exemple #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";
 }
Exemple #4
0
 public TextBox(Scene scene)
 {
     this.scene = scene;
 }
Exemple #5
0
 public Projectile(int[] coords, int[] direction, int[] decay, string type, Scene scene)
 {
     this.coords = coords;
     this.direction = direction;
     this.type = type;
     switch (type)
     {
         case "arrow": { this.velocity = new int[] { 3 * direction[0], 3 * direction[1] }; this.icon = "\u2727"; this.color = Playing.getColor("Red"); break; }
         case "copper": { this.velocity = new int[] { 3 * direction[0], 3 * direction[1] }; this.decay = new int[] { direction[0] * (-1), direction[1] * (-1) }; this.icon = "\u2600"; this.color = Playing.getColor("Yellow"); break; }
         case "malachite": { this.velocity = new int[] { 3 * direction[0], 3 * direction[1] }; this.icon = "\u2600"; this.color = Playing.getColor("Green"); break; }
         case "fireball": { this.velocity = new int[] { 3 * direction[0], 3 * direction[1] }; this.icon = "\u2600"; this.color = Playing.getColor("Red"); break; }
     }
     this.coords = coords;
     this.scene = scene;
 }
Exemple #6
0
 public Player(int[] coords, Scene scene, Playing playing)
 {
     this.playing = playing;
     this.color = Playing.getColor("White");
     inventory.Add("fist");
     this.coords = coords;
     this.scene = scene;
 }
Exemple #7
0
 public Item(int[] coords, Scene scene, string tag)
 {
     this.coords = coords;
     this.setTag(tag);
     this.uniValue = Item.getUniVal(tag);
     this.color = Item.getColor(tag);
 }
Exemple #8
0
        public Enemy(int[] coords, Scene scene, int health, string drop, int eventId, string tag, Playing playing, bool aggressive, string uniVal, int speed)
        {
            //Debug.Print(uniVal);

            this.speed = speed;
            this.setTag(tag);
            this.coords = coords;
            this.scene = scene;
            this.playing = playing;
            this.color = Playing.getColor("White");
            this.health = health;
            this.uniVal = char.ConvertFromUtf32(Convert.ToInt32(uniVal));
            this.drop = drop;
            this.eventId = eventId;
            this.aggressive = aggressive;
            dying = false;
        }
Exemple #9
0
 public Box(int[] coords, Scene scene, string uniVal, string drop, int eventId)
 {
     this.scene = scene;
     this.coords = coords;
     this.uniVal = char.ConvertFromUtf32(Convert.ToInt32(uniVal));
     this.drop = drop;
     this.eventId = eventId;
 }