Exemplo n.º 1
0
 public void addModel(string s, Model m)
 {
     this.modelPool.Add(s, m);
     CompositeModel waste = new CompositeModel(m, new Vector3(9999), Matrix.CreateRotationY(0f));
     this.renderMaster.addModel(waste);
     waste = null;
 }
Exemplo n.º 2
0
        public Fireball(Vector3 vel, Player owner, CompositeModel model)
            : base(model)
        {
            this.velocity = vel;
            this.owner = owner;
            this.model = model;

            this.model.addCollisionCylinder(2f, 1f, Vector3.Up * 0.5f);
            this.model.addBoundingCylinder(2f, 1f, Vector3.Up * 0.5f);
        }
Exemplo n.º 3
0
        public Player(CompositeModel model, Camera camera, Controller controller)
            : base(model)
        {
            this.damage = 0;

            this.cam = camera;
            this.controller = controller;

            this.wizXZ = Vector2.Zero;
            this.wizXZvel = Vector2.Zero;

            this.wizVel = 0f;
            this.wizFloat = true;

            this.power = 1f;
            this.charging = false;

            this.color = this.model.CustomColor;

            bearing = 0;

            this.model.addCollisionCylinder(6.1f, 1f, Vector3.Up * 3.05f);
            this.model.addBoundingCylinder(6.1f, 1f, Vector3.Up * 3.05f);
        }
Exemplo n.º 4
0
 public CollisionEvent intersects(CompositeModel other)
 {
     return this.collisionCollection.intersects(other.collisionCollection);
 }
Exemplo n.º 5
0
 public void addModel(string s, CompositeModel m)
 {
     renderObjectLists[s].Add(m);
 }
Exemplo n.º 6
0
 public void addModel(CompositeModel m)
 {
     renderObjectLists["_master"].Add(m);
 }
Exemplo n.º 7
0
 public void removeModel(string s, CompositeModel m)
 {
     renderObjectLists[s].Remove(m);
 }
Exemplo n.º 8
0
 public void removeModel(CompositeModel m)
 {
     foreach (KeyValuePair<string, List<CompositeModel>> entry in renderObjectLists)
     {
         entry.Value.Remove(m);
     }
 }
Exemplo n.º 9
0
 public Obstacle(CompositeModel cm)
     : base(cm)
 {
 }
Exemplo n.º 10
0
 public Entity(CompositeModel model)
 {
     this.model = model;
     model.setEntity(this);
 }