コード例 #1
0
 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);
 }
コード例 #2
0
 internal void AddBody(Body b)
 {
     bodies.Add(b);
 }