Пример #1
0
 public AICharacter(Level level, Model model, Vector3 position, Weapon meleeWeapon, Weapon rangeWeapon, IList<Character> players)
     : base(level, model, Vector3.Zero, position, meleeWeapon, rangeWeapon)
 {
     target = null;
     pathToTarget = new Queue<Vector2>();
     gen = new Random();
     this.gotoIdleState();
 }
Пример #2
0
 public Character(Level currentLevel, Model model, Vector3 speed, Vector3 position, Weapon meleeWeapon, Weapon rangeWeapon)
 {
     this.model = model;
     this.velocity = speed;
     this.position = Constants.ConvertToXNAScene(position);
     this.meleeWeapon = meleeWeapon;
     this.rangeWeapon = rangeWeapon;
     this.onGround = false;
     containingLevel = currentLevel;
 }