source: 2012/27/DenisZ/TheDungeonGame/TheDungeonGame/TheDungeonGame/ItemEntity.cs @ 3640

Revision 3640, 567 bytes checked in by dezhidki, 9 years ago (diff)

Talletus.

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using Jypeli;
6using Items;
7
8namespace Entity
9{
10   public class ItemEntity : PhysicsObject
11    {
12       public Item bindedItem;
13
14       public ItemEntity(Item item, double width, double height)
15           : base(width, height, Shape.Rectangle)
16       {
17           Tag = "Item";
18           bindedItem = item;
19           Image = bindedItem.itemTexture;
20           CanRotate = false;
21           CollisionIgnoreGroup = CollisionGroups.Rocks;
22       }
23    }
24}
Note: See TracBrowser for help on using the repository browser.