Exemplo n.º 1
0
 public Creature(World world, MainGameContent res, Vector2 position, int eyeCount = DefEyeCount, Network initNw = null) : base(world, res.TCreature, position)
 {
     Eyes       = new Vision(this, eyeCount);
     Brain      = new Brain(this, initNw);
     Propellant = new Propellant(this, res);
     Attack     = new Attack(this, res);
 }
Exemplo n.º 2
0
 public Food(World world, MainGameContent res, Vector2 position) : base(world, res.TFood, position)
 {
 }
Exemplo n.º 3
0
 public Attack(Creature owner, MainGameContent res) : base(res.TAttack, DrawableOrigin.Center)
 {
     Owner  = owner;
     Res    = res;
     Radius = Res.TAttack.Width / 2;
 }
 public Propellant(Creature owner, MainGameContent r)
 {
     Particles = new List <PropellantParticle>();
     Owner     = owner;
     Res       = r;
 }