<?xml version="1.0" encoding="iso-8859-1" ?>
<rss version="0.92">
<channel>
	<docs>http://backend.userland.com/rss092</docs>
	<title>Foros de programación informática - LosPillaos</title>
	<link>http://lospillaos.es/foro/</link>
	<description>Foros de programación informática a todos los niveles.</description>
	<lastBuildDate>Sat, 31 Jul 2010 04:16:36 GMT</lastBuildDate>
	<language>es</language>
  <image>
    <url>http://www.lospillaos.es/foro/templates/LpS/images/logo_phpBB.gif</url>
    <title>Foros de programación informática - LosPillaos</title>
    <link>http://www.lospillaos.es/foro/</link>
  </image>


  <item>
    <title>SQL Server &gt; Restaurar BAK sql server</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15388#15388</link>
    <pubDate>Vie 30 Jul, 2010 22:05 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=49339&quot; target=&quot;_blank&quot;&gt;Gabriela&lt;/a&gt;&lt;br /&gt;
      Asunto: Restaurar BAK sql server&lt;br /&gt;
      Publicado: Vie 30 Jul, 2010 22:05 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 0&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Hola a Todos!. Ojala puedan ayudarme.
&lt;br /&gt;
Tengo un archivo BAk de una base de datos de Tango Gestion (trabaja con sql server) y no la puedo restaurar con Microsoft SQL Server Management Studio: Error: CREATE DATABASE permission denied in database 'master'. Seguramente es porque tiene contraseña y no puedo modificarlo desde Tango. Abri el archivo Bak con el Block de Notas pero si se puede borrar algo para que no me tire el error, no tengo ni idea... basicamente necesito recuperar los datos de esa BD. Desde ya gracias.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Preséntate a la comunidad &gt; Êàê äîëãî áóäåò ïðîäîëæàòüñÿ</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15387#15387</link>
    <pubDate>Vie 30 Jul, 2010 15:42 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=49269&quot; target=&quot;_blank&quot;&gt;badbubble4&lt;/a&gt;&lt;br /&gt;
      Asunto: Êàê äîëãî áóäåò ïðîäîëæàòüñÿ&lt;br /&gt;
      Publicado: Vie 30 Jul, 2010 15:42 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 0&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Êòî ÷òî äóìàåò êàê äîëãî áóäåò ïðîäîëæàòü ýòà íåâûíîñèìàÿ æàðà?&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>PHP &gt; Que me Recomiendan para arrancar con PHP</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15386#15386</link>
    <pubDate>Jue 29 Jul, 2010 23:14 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=49298&quot; target=&quot;_blank&quot;&gt;gasuton&lt;/a&gt;&lt;br /&gt;
      Asunto: Que me Recomiendan para arrancar con PHP&lt;br /&gt;
      Publicado: Jue 29 Jul, 2010 23:14 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 0&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Buenas tardes a todos, me gustaria si ustedes que saben de esto, me pueden ayudar:
&lt;br /&gt;

&lt;br /&gt;
Hace poco arranque con esto de las paginas web, y con HTML no tengo problemas ya lo domino en un 80% o mas, y ahora me queria meter con programacion PHP y MySQL, me baje un buen de tutoriales, videos y demas, pero en todos encuentro un solo patron empiesan muy faciles, y de golpe saltan a hacer cosas super complicadas sin explicar en el medio algunas cosas, por lo que realmente se me complica, y si bien de tando andar por ahi ya tengo alguna idea de cosas me falta una buena base.
&lt;br /&gt;
Por eso les queria pedir si me recomiendan algun buen libro para aprender PHP?, pero que arranque desde lo mas basico de todo y vaya creciendo lento, pero con un monton de ejercicios y problemas para afianzar esos conocimientos.
&lt;br /&gt;

&lt;br /&gt;
Desde ya muchisimas gracias por su tiempo para responder.
&lt;br /&gt;

&lt;br /&gt;
Saludos.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Programación en general &gt; AYUDA URGENTE EN VISUAL o  XHARBOUR</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15385#15385</link>
    <pubDate>Jue 29 Jul, 2010 21:50 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=49292&quot; target=&quot;_blank&quot;&gt;Jorgeluisr_24&lt;/a&gt;&lt;br /&gt;
      Asunto: AYUDA URGENTE EN VISUAL o  XHARBOUR&lt;br /&gt;
      Publicado: Jue 29 Jul, 2010 21:50 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 0&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;[COLOR=&amp;quot;darkred&amp;quot;]NECESITO DE SU AYUDA AMIGOS:
&lt;br /&gt;
ESTOY ELABORANDO UN PROGRAMA ... EL DETALLE DEL INCONVENIENTE ES EL SIGUIENTE ...:
&lt;br /&gt;

&lt;br /&gt;
TENGO EN STOCK DE ITEMS  EN EL MODULO DE VENTAS .... (EJEMPLO ARTICULOS DE FERRETERÍA) DIGAMOS:[/COLOR]
&lt;br /&gt;

&lt;br /&gt;
COD. NOMBRE ARTICULO   /  CANTIDAD  /  PROVEEDOR. /  PRECIO  UNI   
&lt;br /&gt;
111   CLAVOS 1´                   100              CLAVITOS        1.00 $
&lt;br /&gt;
[COLOR=&amp;quot;DarkRed&amp;quot;]HASTA AHI BIEN QUE FIGURA COMO QUIERO...       
&lt;br /&gt;
PERO DIGAMOS QUE ESE ARTICULO TIENE VARIOS LOTES DE INGRESO
&lt;br /&gt;
... LO QUE YO HIZE ES PONER UNA VENTANA DE MODULOS DISPONIBLES Y LA CANTIDAD QUE HABRIA = A CANTIDAD TOTAL QUE MUESTRA EL ITEM ... [/COLOR]
&lt;br /&gt;
EJEM:
&lt;br /&gt;
ART         CANT          LOTE        F.VENC
&lt;br /&gt;
111           10            123456      01/01/2020
&lt;br /&gt;
111           50            789456      01/02/2020
&lt;br /&gt;
111           40            789455      01/03/2020
&lt;br /&gt;

&lt;br /&gt;
[COLOR=&amp;quot;darkred&amp;quot;]COMO PUEDEN VER .... UNO ESCOGIA EL LOTE CORRESPONDIENTE ACORDE EL CLIENTE PEDIA LA CANTIDAD (Y ESTE NO SOBREPASE LO QUE HABIA EN EL LOTE , POR QUE SINO PASABA A NEGATIVO ,((AHI ENTRA EL MEOLLO DE MI PROBLEMA)).[/COLOR]
&lt;br /&gt;

&lt;br /&gt;
AHORA ME PIDIERON QUE IGUAL PRESENTE LA MISMA OPCION PERO CON LA VARIACION DE QUE &amp;quot;SI VENDO UNA CANTIDAD SUPERIOR A LO QUE ESCOGÍ , PUES ME DESCARGUE AUTOMATICAMENTE DEL SIGUIENTE LO RESTANTE QUE CUBRA EL REQUERIMIENTO ASIMISMO IMPRIMIERA DESPLEGADO EN DOS
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
POR EJEMP:
&lt;br /&gt;

&lt;br /&gt;
PIDEN 5 CANT. DEL ITEM MENCIONADO DEL EJEMPL.
&lt;br /&gt;

&lt;br /&gt;
UNO ESCOGIA CUALQUIERA DE LOS 3 PORQUE CUBRE EL REQUERIMIENTO
&lt;br /&gt;

&lt;br /&gt;
AHORA , PIDEN 70 , QUE TENIA QUE HACER ANTES ... ESCRIBIR EL PRODUCTO ... NO CUBRIA NINGUNO DE LOS 3 , ENTONCES VOLVER A DIGITAR PERO AHORA 50 Y ESCOGER EL DE 50 , LUEGO VOLVER A DIGITAR Y ESCOGER EL DE 40 .... ASI CUBRIA MI REQUERIMIENTO , LO QUE QUIERO AHORA ES QUE A PESAR QUE EL PRIMERO NI SEGUNDO Y TERCERO CUBREN .... SE DESCAGUEN SECUENCIALMENTE ... ME DEJO ENTENDER ESPERO ...
&lt;br /&gt;

&lt;br /&gt;
YO DIGITO :
&lt;br /&gt;
CLAVOS 1`  =&amp;gt; VEO 100 SI CUBRE NECESIDAD CLIENTE=&amp;gt; ESCOGO AL AZAR CUALQUIERA , Y CON SOLO DIGITAR ESA VEZ Y PONER ....LOS 70 , SE DESCARGUE DE ESE MODULO ESPECIAL , SECUENCIALMENTE PUES ... LOS 10 , LOS 50  Y 10 DEL TERCERO.
&lt;br /&gt;

&lt;br /&gt;
ASIMISMO EN LA IMPRESION DE DOCUMENTOS , PUES , ME SALGA SE UNA SOLA VEZ ASI:
&lt;br /&gt;

&lt;br /&gt;
[COLOR=&amp;quot;Navy&amp;quot;]CASO 1 (LO QUE HACIA) LA IMPRESION :[/COLOR]
&lt;br /&gt;

&lt;br /&gt;
cant   aRTI                   LOTE             pRECIO 
&lt;br /&gt;
 50     CLAVOS 1 ´        789456         xxxxxX (PRIMERA DIGITACION)
&lt;br /&gt;
 20     CLAVOS 1´         789455          xxxxxxxx (SEGUNDA                          DIGITACION POR  QUE NO CUBRIA)
&lt;br /&gt;

&lt;br /&gt;
ENTONCES ASI SALIA LA IMPRESION Y QUEDABA PARA LA PROXIMA VENTA EN EL MODULO DE VENTAS Y CONSULTA DE LOTES RESPECTIVAMENTE:
&lt;br /&gt;

&lt;br /&gt;
COD. NOMBRE ARTICULO   /  CANTIDAD  /  PROVEEDOR. /  PRECIO  UNI   
&lt;br /&gt;
111   CLAVOS 1´                   30              CLAVITOS        1.00 $
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
ART         CANT          LOTE        F.VENC
&lt;br /&gt;
111           10            123456      01/01/2020
&lt;br /&gt;
111           20            789455      01/03/2020
&lt;br /&gt;

&lt;br /&gt;
AHORA LO QUE QUIERO HACER QUE SEA ASI ...
&lt;br /&gt;

&lt;br /&gt;
EN LA IMPRESION DE DOCUMENTOS , PUES , ME SALGA SE UNA SOLA VEZ ASI:
&lt;br /&gt;

&lt;br /&gt;
ME PASO DE LARGO SOLO DIGITO UNA SOLA VEZ EL PRODUCTO ... I ME PASO DE LARGO ESCOGO EL PRIMERO ... (CANT =10) Y SIGO VENDIENDO...
&lt;br /&gt;

&lt;br /&gt;
ART         CANT          LOTE        F.VENC
&lt;br /&gt;
111           10            123456      01/01/2020
&lt;br /&gt;
111           50            789456      01/02/2020
&lt;br /&gt;
111           40            789455      01/03/2020
&lt;br /&gt;

&lt;br /&gt;
[COLOR=&amp;quot;Navy&amp;quot;]CASO 1 (LO QUE HARA) LA IMPRESION :[/COLOR]
&lt;br /&gt;

&lt;br /&gt;
cant   aRTI                   LOTE             pRECIO 
&lt;br /&gt;
 10     CLAVOS 1 ´        123456         xxxxxX 
&lt;br /&gt;
 50     CLAVOS 1´         789456          xxxxxxxx 
&lt;br /&gt;
 10     CLAVOS 1´         789455          xxxxxxxx 
&lt;br /&gt;

&lt;br /&gt;
ya no digite DOS O N VECES PARA CUBRIR LA NECESIDAD DEL CLIENTE
&lt;br /&gt;
.................................................................................................
&lt;br /&gt;
Y PUES PARA LA PROXIMA VENTA Y CONSULTE EL MISMO PRODUCTO DEBERIA QUEDAR ASI ....
&lt;br /&gt;

&lt;br /&gt;
COD. NOMBRE ARTICULO   /  CANTIDAD  /  PROVEEDOR. /  PRECIO  UNI   
&lt;br /&gt;
111   CLAVOS 1´                   30              CLAVITOS        1.00 $
&lt;br /&gt;

&lt;br /&gt;
ART         CANT          LOTE        F.VENC
&lt;br /&gt;
111           30            789455      01/03/2020
&lt;br /&gt;

&lt;br /&gt;
DISCULPEN QUE SEA TAN LARGA LA EXPLICACION , PERO ESPERO HABER SIDO LO MAS DIDACTICO POSIBLE ... ASI PUEDAN DARME UNA MANITO , SE AGRADECE DE CORAZON &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_wink.gif&quot; alt=&quot;Guiño&quot; border=&quot;0&quot; /&gt;
&lt;br /&gt;

&lt;br /&gt;
JORGE.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>C, C#, Visual C++ &gt; ventana hija win API</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15384#15384</link>
    <pubDate>Jue 29 Jul, 2010 18:50 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=48150&quot; target=&quot;_blank&quot;&gt;ana8722&lt;/a&gt;&lt;br /&gt;
      Asunto: ventana hija win API&lt;br /&gt;
      Publicado: Jue 29 Jul, 2010 18:50 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 0&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Hola a todos! Quiero hacer una ventana hija dentro del menu principal windowProcedure. Quiero que se habra cuando se pulse el boton guardar. La cosa es que cuando acciono el boton aparece la ventana de forma continua, se mete en un bucle infinito. Os dejo el codigo a continuación, graciaaas!!!! &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_razz.gif&quot; alt=&quot;Risa&quot; border=&quot;0&quot; /&gt; 
&lt;br /&gt;

&lt;br /&gt;
LRESULT CALLBACK WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
&lt;br /&gt;
{ 
&lt;br /&gt;
 BOOL child_show; 
&lt;br /&gt;
 BOOL child_update;
&lt;br /&gt;
 HWND hwnd_child; //manipulador    
&lt;br /&gt;

&lt;br /&gt;
switch (message)                  /* handle the messages */
&lt;br /&gt;
    {
&lt;br /&gt;
           
&lt;br /&gt;
        case WM_CREATE:
&lt;br /&gt;
        break;
&lt;br /&gt;
        
&lt;br /&gt;
         case WM_PAINT:   
&lt;br /&gt;

&lt;br /&gt;
             case &lt;a href=&quot;IDM_FILESAVE://Guardar&quot; target=&quot;_blank&quot;&gt;IDM_FILESAVE://Guardar&lt;/a&gt; archivo
&lt;br /&gt;
             //___________ventana hija____________________
&lt;br /&gt;

&lt;br /&gt;
             hwnd_child = CreateWindowEx ( 0,                      // no extended styles          
&lt;br /&gt;
                                  lpClassName3,           // class name                  
&lt;br /&gt;
                                  lpWindowName3,          // window name                 
&lt;br /&gt;
                                  WS_CHILD | WS_OVERLAPPEDWINDOW,       
&lt;br /&gt;
                                  CW_USEDEFAULT,          // default horizontal position 
&lt;br /&gt;
                                  CW_USEDEFAULT,          // default vertical position   
&lt;br /&gt;
                                  100,          // default width               
&lt;br /&gt;
                                  100,          // default height              
&lt;br /&gt;
                                  hwnd,
&lt;br /&gt;
                                  (HMENU) NULL,           // class menu used             
&lt;br /&gt;
                                  hThisInstance,              // instance handle             
&lt;br /&gt;
                                  NULL);                  // no window creation data     
&lt;br /&gt;

&lt;br /&gt;
                  if (!hwnd_child)
&lt;br /&gt;
                  return FALSE;
&lt;br /&gt;
                  child_show = ShowWindow (hwnd_child,SW_SHOWNORMAL); 
&lt;br /&gt;
                  child_update = UpdateWindow (hwnd_child);
&lt;br /&gt;
                  comando=IDM_FILESAVEAS;   
&lt;br /&gt;
    //_______________________________________________________________________    
&lt;br /&gt;
   
&lt;br /&gt;
                  break;
&lt;br /&gt;

&lt;br /&gt;
La asignación de IDM_FILESAVEAS al comando es precisamente para que no se produzca este bucle infinito ya que el caso FILESAVEAS no lo tengo implementado.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Temas generales &gt; RE: Campus Party 2010</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15383#15383</link>
    <pubDate>Jue 29 Jul, 2010 15:04 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=2&quot; target=&quot;_blank&quot;&gt;Tesis&lt;/a&gt;&lt;br /&gt;
      Asunto: Re: Campus Party 2010&lt;br /&gt;
      Publicado: Jue 29 Jul, 2010 15:04 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 12&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Dicho y hecho, ya conozco a otro miembro más del foro. El compañero B-yo, ha sido la victima  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_mrgreen.gif&quot; alt=&quot;Reir&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_mrgreen.gif&quot; alt=&quot;Reir&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_mrgreen.gif&quot; alt=&quot;Reir&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_mrgreen.gif&quot; alt=&quot;Reir&quot; border=&quot;0&quot; /&gt; 
&lt;br /&gt;

&lt;br /&gt;
Muestro una imagen de los dos:
&lt;br /&gt;
&lt;img src=&quot;http://img200.imageshack.us/img200/4390/carlosbyoyyo.jpg&quot; border=&quot;0&quot; /&gt;
&lt;br /&gt;
Pie de foto: B-yo y Tesis
&lt;br /&gt;

&lt;br /&gt;
La verdad es que me he quedado muy sorprendido al verlo. Es una persona muy cercana y humilde (también charradora jajajajjaja). Tiene una calidad humana fantástica. 
&lt;br /&gt;
Sé que no le he pillado en su mejor momento (lo he despertado después de dormir 3 h.) pero aún así hemos estado aproximadamente 2h. y media de charla.
&lt;br /&gt;

&lt;br /&gt;
Estaría bien que el año que viene pudiéramos tener presencia el la campus, de una manera u otra, la cuestión es estar.
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Que sepas que aquí tienes las puertas abiertas para cuando quieras venir y recuerda que tenemos una quedada pendiente en la playa con una cerveza fresca en la mano.  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_pidu.gif&quot; alt=&quot;Amigos&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_pidu.gif&quot; alt=&quot;Amigos&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_pidu.gif&quot; alt=&quot;Amigos&quot; border=&quot;0&quot; /&gt; 
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Saludos.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Java &gt; RE: mover objeto desde evento de teclado en JAVA</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15381#15381</link>
    <pubDate>Jue 29 Jul, 2010 10:21 am (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=49177&quot; target=&quot;_blank&quot;&gt;samsa68&lt;/a&gt;&lt;br /&gt;
      Asunto: Re: mover objeto desde evento de teclado en JAVA&lt;br /&gt;
      Publicado: Jue 29 Jul, 2010 10:21 am (GMT 2)&lt;br /&gt;
      Tema Respuestas: 2&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Te puedo enseñar el proyecto entero si con ello consigues ayudarme mejor jejeje.
&lt;br /&gt;

&lt;br /&gt;
El bucle del juego no creo que sea el problema ya que lo uso para pintar los niveles y hasta ayer no me daba ningun error.
&lt;br /&gt;
Te pongo los métodos en orden de ejecucion:
&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public static void main&amp;#40;String&amp;#91;&amp;#93; args&amp;#41; throws FileNotFoundException &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Sokoban sokoban = new Sokoban&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sokoban.game&amp;#40;&amp;#41;;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; public void game&amp;#40;&amp;#41; throws FileNotFoundException &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; initWorld&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while &amp;#40;isVisible&amp;#40;&amp;#41;&amp;#41; &amp;#123;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; updateWorld&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; paintWorld&amp;#40;&amp;#41;;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; public void initWorld&amp;#40;&amp;#41; throws FileNotFoundException &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //crea y coloca el boton restar
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; File archivo = null;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileReader fr = null;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; BufferedReader br = null;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Apertura del fichero y creacion de BufferedReader para poder
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // hacer una lectura comoda &amp;#40;disponer del metodo readLine&amp;#40;&amp;#41;&amp;#41;.
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; archivo = new File&amp;#40;&amp;quot;G&amp;#58;/PFC/Sokoban/src/niveles/&amp;quot; + getNivel&amp;#40;&amp;#41; + &amp;quot;.txt&amp;quot;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fr = new FileReader&amp;#40;archivo&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; br = new BufferedReader&amp;#40;fr&amp;#41;;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Lectura del fichero
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String linea;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while &amp;#40;&amp;#40;linea = br.readLine&amp;#40;&amp;#41;&amp;#41; != null&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char&amp;#91;&amp;#93; caracter = linea.toCharArray&amp;#40;&amp;#41;;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for &amp;#40;int i = 0; i &amp;lt; linea.length&amp;#40;&amp;#41;; i++&amp;#41; &amp;#123;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &amp;#40;caracter&amp;#91;i&amp;#93; == ' '&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Blanco bla = new Blanco&amp;#40;this&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bla.setX&amp;#40;x&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; bla.setY&amp;#40;y&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actors.add&amp;#40;bla&amp;#41;;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x += 30;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else if &amp;#40;caracter&amp;#91;i&amp;#93; == '#'&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Pared p = new Pared&amp;#40;this&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p.setX&amp;#40;x&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p.setY&amp;#40;y&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actors.add&amp;#40;p&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x += 30;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else if &amp;#40;caracter&amp;#91;i&amp;#93; == '2'&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x = 90;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else if &amp;#40;caracter&amp;#91;i&amp;#93; == '$'&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PorColocar b = new PorColocar&amp;#40;this&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b.setX&amp;#40;x&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b.setY&amp;#40;y&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actors.add&amp;#40;b&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x += 30;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else if &amp;#40;caracter&amp;#91;i&amp;#93; == '@'&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player = new Personaje&amp;#40;this&amp;#41;;//crea un nuevo personaje
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.setX&amp;#40;x&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.setY&amp;#40;y&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x += 30;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else if &amp;#40;caracter&amp;#91;i&amp;#93; == '.'&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PosFinal f = new PosFinal&amp;#40;this&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f.setX&amp;#40;x&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; f.setY&amp;#40;y&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actors.add&amp;#40;f&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x += 30;//por crear punto de colocacion
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else if &amp;#40;caracter&amp;#91;i&amp;#93; == '0'&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x += 30;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else if &amp;#40;caracter&amp;#91;i&amp;#93; == '*'&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Colocado c = new Colocado&amp;#40;this&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.setX&amp;#40;x&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; c.setY&amp;#40;y&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; actors.add&amp;#40;c&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; x += 30;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; else &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println&amp;#40;&amp;quot;WTF caracter que no existe&amp;quot;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; y += 30;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; catch &amp;#40;Exception e&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; System.out.println&amp;#40;&amp;quot;Error de lectura en el fichero&amp;quot;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e.printStackTrace&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; finally &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // En el finally cerramos el fichero, para asegurarnos
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // que se cierra tanto si todo va bien como si salta
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // una excepcion.
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; try &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if &amp;#40;null != fr&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fr.close&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125; catch &amp;#40;Exception e2&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; e2.printStackTrace&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; public void updateWorld&amp;#40;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for &amp;#40;int i = 0; i &amp;lt; actors.size&amp;#40;&amp;#41;; i++&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Elementos m = &amp;#40;Elementos&amp;#41; actors.get&amp;#40;i&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m.act&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.act&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;&amp;nbsp; &amp;nbsp; public void paintWorld&amp;#40;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Graphics2D g = &amp;#40;Graphics2D&amp;#41; strategy.getDrawGraphics&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g.setColor&amp;#40;Color.black&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; g.fillRect&amp;#40;0, 0, getWidth&amp;#40;&amp;#41;, getHeight&amp;#40;&amp;#41;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for &amp;#40;int i = 0; i &amp;lt; actors.size&amp;#40;&amp;#41;; i++&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Elementos m = &amp;#40;Elementos&amp;#41; actors.get&amp;#40;i&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m.paint&amp;#40;g&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.paint&amp;#40;g&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //g.setColor&amp;#40;Color.white&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; strategy.show&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
Lo mismo no estoy haciendo bien mi programa por ser el primer proyecto que hago tan grande y puede que las cosas esten muy desordenadas o con errores de concepto...no lo se.
&lt;br /&gt;

&lt;br /&gt;
Gracias por la ayuda
&lt;br /&gt;

&lt;br /&gt;
Edit: cuando hago run en el proyecto, se abre una ventana y carga bien el nivel y los botones correspondientes pero cuando pulso la tecla &amp;quot;up&amp;quot; que es la que estoy probando, mi pantalla se queda en blanco a excepcion de los botones.
&lt;br /&gt;
Es como si no pudiese repintar el juego...&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Visual Basic .NET &gt; Ayuda para modificar registros en DataGridView</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15380#15380</link>
    <pubDate>Jue 29 Jul, 2010 03:43 am (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=49257&quot; target=&quot;_blank&quot;&gt;adonis74&lt;/a&gt;&lt;br /&gt;
      Asunto: Ayuda para modificar registros en DataGridView&lt;br /&gt;
      Publicado: Jue 29 Jul, 2010 03:43 am (GMT 2)&lt;br /&gt;
      Tema Respuestas: 0&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Hola un saludo a todos. 
&lt;br /&gt;

&lt;br /&gt;
Estoy desarrollando una aplicación en VB.Net , en unos de los formularios existe un datagridview enlazado a datos de una tabla con origen en su servidor sql. La tabla principal alojada en ese servidor se alimenta de unos controles que existen en el mismo formulario del datagridview. En tiempo de ejecución cuando inserto una nueva fila a travez de los controles TextBox, combobox, datetimerpicker, ect. Se actauliza automáticamente los registros del datagridview pudiéndose ver sin problemas. Hasta ahí todo funciona de maravillas. 
&lt;br /&gt;
Necesito editar y modificar cualquier dato del datagridview y que a su vez se actualice en la tabla de la base de datos y se vea ya actualizado en el datagribview. Para esto adicioné un nuevo formulario con un botón llamado modificar, en este nuevo form. puse tantos controles como columna tiene el datagridview y al hacer doble clic sobre una fila ese evento me llama al formulario nuevo y en esos controles se ven los datos de la fila. 
&lt;br /&gt;
Hasta ahí todo perfecto el código que utilice fue este por si alguna vez lo necesitan: 
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Private Sub Medios_de_SeguridadDataGridView_CellDoubleClick&amp;#40;ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs&amp;#41; Handles Medios_de_SeguridadDataGridView.CellDoubleClick 
&lt;br /&gt;
Dim Fila_Seleccionada As Byte = CByte&amp;#40;Me.Medios_de_SeguridadDataGridView.CurrentCell.RowIndex&amp;#41; 
&lt;br /&gt;
Dim vector_de_datos&amp;#40;100&amp;#41; As String 
&lt;br /&gt;
vector_de_datos&amp;#40;0&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;0&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;1&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;1&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;2&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;2&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;3&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;3&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;4&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;4&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;5&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;5&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;6&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;6&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;7&amp;#41; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40;7&amp;#41;.Value 
&lt;br /&gt;
vector_de_datos&amp;#40;&amp;nbsp; = Me.Medios_de_SeguridadDataGridView.Rows&amp;#40;Fila_Seleccionada&amp;#41;.Cells&amp;#40; .Value 
&lt;br /&gt;
cargardatos&amp;#40;vector_de_datos&amp;#41; 
&lt;br /&gt;
Me.cargardatos&amp;#40;vector_de_datos&amp;#41; 
&lt;br /&gt;
My.Forms.ModificarMedios.ShowDialog&amp;#40;&amp;#41; 
&lt;br /&gt;
End Sub 
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Private Sub cargardatos&amp;#40;ByVal vector_de_datos&amp;#41; 
&lt;br /&gt;
ModificarMedios.NroTextBox.Text = vector_de_datos&amp;#40;0&amp;#41; 
&lt;br /&gt;
ModificarMedios.DescripcionTextBox.Text = vector_de_datos&amp;#40;1&amp;#41; 
&lt;br /&gt;
ModificarMedios.CodigoTextBox.Text = vector_de_datos&amp;#40;2&amp;#41; 
&lt;br /&gt;
ModificarMedios.UbicacionTextBox.Text = vector_de_datos&amp;#40;3&amp;#41; 
&lt;br /&gt;
ModificarMedios.FechaEntregaTextBox.Text = vector_de_datos&amp;#40;4&amp;#41; 
&lt;br /&gt;
ModificarMedios.FechaVerificacionTextBox.Text = vector_de_datos&amp;#40;5&amp;#41; 
&lt;br /&gt;
ModificarMedios.TiempoTextBox.Text = vector_de_datos&amp;#40;6&amp;#41; 
&lt;br /&gt;
ModificarMedios.FechaProximaVFTextBox.Text = vector_de_datos&amp;#40;7&amp;#41; 
&lt;br /&gt;
ModificarMedios.ObservacionesTextBox.Text = vector_de_datos&amp;#40;&amp;nbsp; 
&lt;br /&gt;

&lt;br /&gt;
End Sub &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
Nota: Estas lineas de código van en el formulario 1 donde está el datagridview, en el evento cellDoubleclick 
&lt;br /&gt;
Mi problema está una vez estando en los datos cargados del formulario nuevo(ModificarMedios), ¿qué metodo debo llamar para que a travez del boton modificar se actalicen los datos en el datagridview y a su vez en la tabla de la base de datos. 
&lt;br /&gt;
He puesto todos estos y ninguno me funciona: 
&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;Private Sub Modificar_Click&amp;#40;ByVal sender As System.Object, ByVal e As System.EventArgs&amp;#41; Handles Modificar.Click 
&lt;br /&gt;
Me.Validate&amp;#40;&amp;#41; 
&lt;br /&gt;
Medios_de_SeguridadTableAdapter.Update&amp;#40;Me.OBETVDataSet.Medios_de_Seguridad&amp;#41; 
&lt;br /&gt;
Me.Medios_de_SeguridadTableAdapter.Fill&amp;#40;Me.OBETVDataSet.Medios_de_Seguridad&amp;#41; 
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
Medios_de_SeguridadTableAdapter.Insert&amp;#40;DescripcionTextBox.Text, CodigoTextBox.Text, UbicacionTextBox.Text, FechaEntregaTextBox.Text, FechaVerificacionTextBox.Text, TiempoTextBox.Text, FechaProximaVFTextBox.Text, ObservacionesTextBox.Text&amp;#41; 
&lt;br /&gt;

&lt;br /&gt;
Medios_de_SeguridadTableAdapter.UpdateAll&amp;#40;DescripcionTextBox.Text, CodigoTextBox.Text, UbicacionTextBox.Text, FechaEntregaTextBox.Text, FechaVerificacionTextBox.Text, TiempoTextBox.Text, FechaProximaVFTextBox.Text, ObservacionesTextBox.Text&amp;#41;&amp;#41; 
&lt;br /&gt;
End Sub &lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
Nota el de insert lo que me hace es agregar un registro nuevo en la tabla tal y como lo hago con los controles del formulario 1 (no es lo que necesito) Lo que busco es que al modificar por ejemplo lo que hay en (UbicacionTextBox.Text) se actualice en el datagridview y en la BD. 
&lt;br /&gt;

&lt;br /&gt;
Espero puedan ayudarme y les sirva tambien lo que le he dejado y que me ha funcionado. 
&lt;br /&gt;
Saludos y espero colaboración.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Programación en general &gt; Programacion orientada a objetos (poo)</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15379#15379</link>
    <pubDate>Jue 29 Jul, 2010 00:50 am (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=37555&quot; target=&quot;_blank&quot;&gt;andresdaniel&lt;/a&gt;&lt;br /&gt;
      Asunto: Programacion orientada a objetos (poo)&lt;br /&gt;
      Publicado: Jue 29 Jul, 2010 00:50 am (GMT 2)&lt;br /&gt;
      Tema Respuestas: 0&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Hola gente que tal.
&lt;br /&gt;

&lt;br /&gt;
Saben de algun buen libro que me pueda dar las definiciones, ejemplo:
&lt;br /&gt;

&lt;br /&gt;
que es una clase
&lt;br /&gt;
que es un objeto
&lt;br /&gt;
herencia
&lt;br /&gt;
polimorfismo
&lt;br /&gt;
encapsulamiento
&lt;br /&gt;
sobrecarga de metodos
&lt;br /&gt;
intanciacion
&lt;br /&gt;
generalizacion
&lt;br /&gt;
y etc, conseptos vasicos de programacion orientados a objetos.
&lt;br /&gt;

&lt;br /&gt;
Bueno, no quiero desechar sus conocimiento, pero si alguno sabe las definiciones y no es necesario un libro, bienvenido sea.
&lt;br /&gt;

&lt;br /&gt;
Saludos...&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Java &gt; RE: mover objeto desde evento de teclado en JAVA</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15378#15378</link>
    <pubDate>Mie 28 Jul, 2010 22:58 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=26492&quot; target=&quot;_blank&quot;&gt;WhiteSkull&lt;/a&gt;&lt;br /&gt;
      Asunto: Re: mover objeto desde evento de teclado en JAVA&lt;br /&gt;
      Publicado: Mie 28 Jul, 2010 22:58 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 2&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;mmmm... el bucle del juego, se encuentra en el main?
&lt;br /&gt;

&lt;br /&gt;
puedes mostrarme el bucle principal del juego? si quieres, muéstralo parcialmente... 
&lt;br /&gt;

&lt;br /&gt;
Por el error que muestras...
&lt;br /&gt;

&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;	&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;samsa68 escribió:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;quote&quot;&gt;Exception in thread &amp;quot;main&amp;quot; java.lang.NullPointerException 
&lt;br /&gt;
at juego.Personaje.act(Personaje.java:32) 
&lt;br /&gt;
at juego.Juego.updateWorld(Juego.java:289) 
&lt;br /&gt;
at juego.Juego.game(Juego.java:316) 
&lt;br /&gt;
at juego.Juego.main(Juego.java:324)&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
es posible que no se esté inicializando correctamente algún objeto que previamente se haya declarado.
&lt;br /&gt;

&lt;br /&gt;
Entonces hay que localizar el objeto causante de la excepción...&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Java &gt; mover objeto desde evento de teclado en JAVA</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15377#15377</link>
    <pubDate>Mie 28 Jul, 2010 20:30 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=49177&quot; target=&quot;_blank&quot;&gt;samsa68&lt;/a&gt;&lt;br /&gt;
      Asunto: mover objeto desde evento de teclado en JAVA&lt;br /&gt;
      Publicado: Mie 28 Jul, 2010 20:30 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 2&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Hola:
&lt;br /&gt;

&lt;br /&gt;
Necesito ayuda para mover un objeto mediante eventos de teclado
&lt;br /&gt;
Estoy haciendo un juego en java y ya he conseguido pintar los niveles, en una pantalla tenemos las paredes, unas cajas y un personaje.
&lt;br /&gt;

&lt;br /&gt;
Para comenzar quiero mover el personaje, el cual es una clase(personaje) que hereda de otra (Elementos) que contiene todos los elementos de cada nivel.
&lt;br /&gt;
A parte esta la clase juego que es la que gestiona los eventos del teclado.
&lt;br /&gt;
Entonces yo he hecho lo siguiente:
&lt;br /&gt;

&lt;br /&gt;
Clase Personaje:
&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; @Override
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void act&amp;#40;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; super.act&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if&amp;#40;up==true&amp;#41;&amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.setY&amp;#40;player.getY&amp;#40;&amp;#41;-30&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;

&lt;br /&gt;

&lt;br /&gt;
//movimientos del personaje
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; //indica que una tecla a sido soltada
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void keyReleased&amp;#40;KeyEvent e&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch &amp;#40;e.getKeyCode&amp;#40;&amp;#41;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_DOWN&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; down = false;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_UP&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; up = false;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_LEFT&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; left = false;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_RIGHT&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; right = false;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;

&lt;br /&gt;
//tecla presionada
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void keyPressed&amp;#40;KeyEvent e&amp;#41; &amp;#123;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch &amp;#40;e.getKeyCode&amp;#40;&amp;#41;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_W&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch &amp;#40;e.getKeyCode&amp;#40;&amp;#41;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_UP&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; up = true;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_LEFT&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; left = true;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_RIGHT&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; right = true;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case KeyEvent.VK_DOWN&amp;#58;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; down = true;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
Basicamente para hacer mi primera prueba quiero que cuando presione la flecha hacia arriba pues mi imagen se mueva hacia arriba sin más.
&lt;br /&gt;

&lt;br /&gt;
En la clase juego tengo este método que es el que llama a jugador, este método es llamado mediante otro método en el main.
&lt;br /&gt;

&lt;br /&gt;
Clase Juego
&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void updateWorld&amp;#40;&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; for &amp;#40;int i = 0; i &amp;lt; actors.size&amp;#40;&amp;#41;; i++&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Elementos m = &amp;#40;Elementos&amp;#41; actors.get&amp;#40;i&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; m.act&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.act&amp;#40;&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
En esta misma clase también recojo los eventos de teclado:
&lt;br /&gt;
&lt;/span&gt;&lt;table class=&quot;forumline&quot; cellspacing=&quot;1&quot; cellpadding=&quot;3&quot; border=&quot;0&quot;&gt;&lt;tr&gt; 	  &lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;b&gt;Código:&lt;/b&gt;&lt;/span&gt;&lt;/td&gt;	&lt;/tr&gt;	&lt;tr&gt;	  &lt;td class=&quot;code&quot;&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void keyTyped&amp;#40;KeyEvent e&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void keyPressed&amp;#40;KeyEvent e&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.keyPressed&amp;#40;e&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;

&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public void keyReleased&amp;#40;KeyEvent e&amp;#41; &amp;#123;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; player.keyPressed&amp;#40;e&amp;#41;;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;#125;
&lt;br /&gt;
&amp;#125;
&lt;br /&gt;
&lt;/td&gt;	&lt;/tr&gt;&lt;/table&gt;&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;

&lt;br /&gt;
En concreto el método que me da la excepcion es act(); y sólo al pulsar la flecha hacia arriba(logico).
&lt;br /&gt;
La excepcion es: 
&lt;br /&gt;

&lt;br /&gt;
Exception in thread &amp;quot;main&amp;quot; java.lang.NullPointerException
&lt;br /&gt;
        at juego.Personaje.act(Personaje.java:32)
&lt;br /&gt;
        at juego.Juego.updateWorld(Juego.java:289)
&lt;br /&gt;
        at juego.Juego.game(Juego.java:316)
&lt;br /&gt;
        at juego.Juego.main(Juego.java:324)&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Excel &gt; RE: Series 123 y 112233 (excel 2007)</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15376#15376</link>
    <pubDate>Mie 28 Jul, 2010 16:27 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=26492&quot; target=&quot;_blank&quot;&gt;WhiteSkull&lt;/a&gt;&lt;br /&gt;
      Asunto: Re: Series 123 y 112233 (excel 2007)&lt;br /&gt;
      Publicado: Mie 28 Jul, 2010 16:27 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 3&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Claro que lo debe tener, y se llama &lt;span style=&quot;font-weight: bold&quot;&gt;Autorelleno&lt;/span&gt;. En el 2003 por lo menos, no se hacía así cómo tu comentas, o no es del todo correcto. Seleccionas una celda y ésta queda marcada por los bordes de sus lados con líneas más gruesas, pero donde tienes que tirar, en vertical u horizontal, es por la esquina inferior-derecha, que se marca con un cuadrito negro muy acentuado; y una vez que seleccionas un área de filas o columnas, aparece una pestañita desplegable en la esquina citada, &lt;span style=&quot;font-weight: bold&quot;&gt;Opciones de autorelleno&lt;/span&gt;. Desde esa pestaña puedes seleccionar cuatro o cinco tipos de relleno, en el que se encuentra el relleno en &lt;span style=&quot;font-weight: bold&quot;&gt;serie&lt;/span&gt;, que es la opción que tu citas.
&lt;br /&gt;

&lt;br /&gt;
En 2007? pues no lo se... pero a lo mejor éste enlace te puede ayudar:
&lt;br /&gt;
&lt;a href=&quot;http://www.aulaclic.es/excel2007/a_5_3_2.htm&quot; target=&quot;_blank&quot;&gt;http://www.aulaclic.es/excel2007/a_5_3_2.htm&lt;/a&gt;
&lt;br /&gt;

&lt;br /&gt;
de nada &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_ok.gif&quot; alt=&quot;Ok&quot; border=&quot;0&quot; /&gt;&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Excel &gt; RE: Series 123 y 112233 (excel 2007)</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15375#15375</link>
    <pubDate>Mie 28 Jul, 2010 15:59 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=22089&quot; target=&quot;_blank&quot;&gt;Moises&lt;/a&gt;&lt;br /&gt;
      Asunto: Re: Series 123 y 112233 (excel 2007)&lt;br /&gt;
      Publicado: Mie 28 Jul, 2010 15:59 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 3&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;¿El cualo? El tio Pascualo.
&lt;br /&gt;

&lt;br /&gt;
Fuera de bromas, cuando escribes en la A1,A2 y A3, los números 1, 2 y 3 respectivamente, seleccionas esas tres celdas y arrastras hacia abajo, automáticamente continua la serie con el 4,5,6,7, etc. 
&lt;br /&gt;

&lt;br /&gt;
Y lo mismo quiero hacer, o sea, arrastrar, para que me salga la serie que he dicho: 1,2,3,1,2,3,1,2, etc; o esta otra: 1,1,2,2,3,3,4,4, etc. Se puede hacer?
&lt;br /&gt;

&lt;br /&gt;
PD: Creo que en el excel anterior al 2007, escribía en columna estos seis números: 1,2,3,1,2,3 y al seleccionarlos y arrastrar, el ordenador continuaba la serie (con 1,2,3,1,2,etc). Pero he probado de varias maneras y no me sale.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Visual Basic .NET &gt; RE: Apuntarse al curso de programación .NET</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15374#15374</link>
    <pubDate>Mie 28 Jul, 2010 14:46 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=2&quot; target=&quot;_blank&quot;&gt;Tesis&lt;/a&gt;&lt;br /&gt;
      Asunto: Re: Apuntarse al curso de programación .NET&lt;br /&gt;
      Publicado: Mie 28 Jul, 2010 14:46 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 92&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;Apuntados &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_ok.gif&quot; alt=&quot;Ok&quot; border=&quot;0&quot; /&gt;  &lt;img src=&quot;http://lospillaos.es/foro/images/smiles/icon_ok.gif&quot; alt=&quot;Ok&quot; border=&quot;0&quot; /&gt; 
&lt;br /&gt;

&lt;br /&gt;
Temario:
&lt;br /&gt;
&lt;a href=&quot;http://www.foro.lospillaos.es/curso-gratuito-de-programacion-en-vb-studio-net-vt4212.html&quot; target=&quot;_blank&quot; class=&quot;postlink&quot;&gt;http://www.foro.lospillaos.es/curso-gratuito-de-programacion-en-vb-studio-net-vt4212.html&lt;/a&gt;
&lt;br /&gt;

&lt;br /&gt;
Y no os quedéis con ninguna duda e ir preguntando todo lo que queráis.
&lt;br /&gt;
Saludos.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
  <item>
    <title>Visual Basic .NET &gt; RE: Apuntarse al curso de programación .NET</title>
    <link>http://lospillaos.es/foro/viewtopic.php?p=15373#15373</link>
    <pubDate>Mie 28 Jul, 2010 14:11 pm (GMT 2)</pubDate>

    <description>Autor: &lt;a href=&quot;http://lospillaos.es/foro/profile.php?mode=viewprofile&amp;u=39952&quot; target=&quot;_blank&quot;&gt;Druida&lt;/a&gt;&lt;br /&gt;
      Asunto: Re: Apuntarse al curso de programación .NET&lt;br /&gt;
      Publicado: Mie 28 Jul, 2010 14:11 pm (GMT 2)&lt;br /&gt;
      Tema Respuestas: 92&lt;br /&gt;&lt;br /&gt;
      &lt;span class="postbody"&gt;No se si llego tarde pero me apunto.&lt;/span&gt;&lt;br /&gt;
    </description>
  </item>
</channel>
</rss>

