Exemple #1
0
 public Player(int id, Vector2 pos) : base(pos)
 {
     maxVelocity = 5;
     health      = 100;
     inventory   = new Item.Inventory(5, 15);
     position    = pos;
     velocity    = Vector2.Zero;
     speed       = 1;
 }
Exemple #2
0
 public NPC(Vector2 position, Faction faction) : base(position)
 {
     this.faction = faction;
     inventory    = new Item.Inventory(5);
     InitializeNPCLua();
 }