Beispiel #1
0
 public Entity(Texture2D texture, Vector2 position, float speed, int size, SimulationWorld world)
     : base(texture, position, size, new Rectangle(0, 0, 64, 64))
 {
     this.speed = speed;
     this.world = world;
     this.weapon = new Pistol(world, this);
 }
Beispiel #2
0
 public void SetWeapon(Weapon weapon)
 {
     this.weapon = weapon;
 }