Ignore:
Timestamp:
2012-07-06 10:47:06 (9 years ago)
Author:
dezhidki
Message:

Talletus.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/RoomTemplates.cs

    r3624 r3640  
    77using MathHelper; 
    88using Entity; 
     9using Items; 
    910 
    1011namespace Rooms 
     
    2021        { 
    2122            createLevelDecorations(); 
    22  
    23             
     23            spawnRandomItems(1); 
    2424        } 
    2525    } 
     
    221221            if (id == 0) 
    222222                ent = new EntityFly((TheDungeonGame)TheDungeonGame.Instance, Vector.Zero, new Vector(50, 50), Shape.Circle); 
    223             else if(id == 1) 
     223            else if (id == 1) 
    224224                ent = new EntityZombie((TheDungeonGame)TheDungeonGame.Instance, Vector.Zero, new Vector(60, 60), Shape.Rectangle); 
    225             else if(id == 2) 
     225            else if (id == 2) 
    226226                ent = new EntityDerpFace((TheDungeonGame)TheDungeonGame.Instance, Vector.Zero, new Vector(60, 60), Shape.Circle); 
    227             else if(id == 3) 
     227            else if (id == 3) 
    228228                ent = new EntityDerpFly((TheDungeonGame)TheDungeonGame.Instance, Vector.Zero, new Vector(50, 50), Shape.Circle); 
    229229            //else if(id == 4) 
     
    231231            return ent; 
    232232        } 
     233 
     234        public static Item getItem(int id) 
     235        { 
     236            Item item = null; 
     237            if (id == 0) 
     238                item = new ItemHealth(); 
     239 
     240            return item; 
     241        } 
    233242    } 
    234243} 
Note: See TracChangeset for help on using the changeset viewer.