Ejemplo n.º 1
0
 public MainWindow(MessageBoard messageBoard)
 {
     this.lT = new float[this.l0.Length][];
     for(int i = 0x00; i < this.l0.Length; i++) {
         this.lT[i] = new float[this.l0[i].Length];
         for(int j = 0x00; j < this.l0[i].Length; j++) {
             this.lT[i][j] = this.l0[i][j];
         }
     }
     this.Keyboard.KeyRepeat = true;
     this.Keyboard.KeyDown += HandleKeyboardhandleKeyDown;
     this.cam = new Camera();
     //this.cam.PositionTarget = new Vector3(0.0f,-5.0f,-8.5f);
     //this.cam.ThetaTarget = 30.0f;
     this.sceneLoader = new SceneLoader(this);
     this.subtitles = new SubtitleRenderer();
     float temp = (float)this.Width/(float)this.Height;
     this.perspective = Matrix4.CreatePerspectiveFieldOfView(0.25f*(float)Math.PI, temp, 1.0f, 64.0f);
     this.messageBoard = messageBoard;
 }
Ejemplo n.º 2
0
 public SubtitleAction(float time, SceneLoader sl, float span, string text)
     : base(time,sl)
 {
     this.span = span;
     this.text = text;
 }
Ejemplo n.º 3
0
 public LightAction(float time, SceneLoader sl, string index, float[] target)
     : base(time,sl)
 {
     switch(index) {
         case "P":
             this.index = 0x00;
             break;
         case "A":
             this.index = 0x01;
             break;
         case "D":
             this.index = 0x02;
             break;
         case "S":
             this.index = 0x03;
             break;
         case "T":
             this.index = 0x04;
             break;
     }
     this.target = target;
 }
Ejemplo n.º 4
0
 public GenericAction(float time, SceneLoader sl, string text)
     : base(time,sl)
 {
     this.text = text;
 }
Ejemplo n.º 5
0
 public CameraAction(float time, SceneLoader sl, float[] param)
     : base(time,sl)
 {
     this.xz = param[0x00];
     this.y = param[0x01];
     this.zoom = param[0x02];
 }
Ejemplo n.º 6
0
 protected Action(float time, SceneLoader sl)
 {
     this.time = time;
     this.sl = sl;
 }