public Character(CharacterInfo.Type _type, String _texture, PhysicsEngine engine, Vector2 _position, Vector2 _size, float bodySize) : base(_texture, _size) { info = Constants.Instance.getCharacterInfo(_type); initCharacter (); //body.setPosition(_position); body = new Body(bodySize, _position); // TODO: size as a FLOAT instead?! engine.AddBody(body); }
internal void AddBody(Body b) { bodies.Add(b); }