示例#1
0
 public Door(Vector2 position, float speed, string name, bool on, DoorTypes type)
 {
     Name      = name;
     _door     = new Movable(new RectangleF(32, 128, position.X, position.Y));
     Position  = position;
     _speedMax = speed;
     On        = on;
     _type     = type;
 }
示例#2
0
 public Elevator(Vector2 start, float speed, string name, params Vector2[] nodes)
 {
     Nodes     = new List <Vector2>();
     Name      = name;
     _platform = new Movable(new RectangleF(64, 32, start.X - 32, start.Y - 16));
     Start     = start;
     SpeedMax  = speed;
     On        = true;
     Nodes.AddRange(nodes);
 }
示例#3
0
 public Elevator(Vector2 start, float speed, string name, List <Vector2> nodes)
 {
     Nodes     = new List <Vector2>();
     Name      = name;
     _platform = new Movable(new RectangleF(64, 32, start.X, start.Y));
     Start     = start;
     SpeedMax  = speed;
     On        = false;
     Nodes     = nodes;
     from      = 0;
 }