Beispiel #1
0
 public void Dibujar(Personaje personaje)
 {
     Point posicion = APosicionVisual(new Point(personaje.getPosicion().X, personaje.getPosicion().Y + personaje.getAlto()));
     Size tam = new Size(personaje.getAncho() * unidad, personaje.getAlto() * unidad);
     screen.Fill(new Rectangle(APosicionVisual(new Point(personaje.getPosicion().X, personaje.getPosicion().Y + personaje.getAlto())), new Size(personaje.getAncho() * unidad, personaje.getAlto() * unidad)), Color.Blue);
 }
Beispiel #2
0
 private bool esOcupableDesdeAbajo(System.Drawing.Point punto,Personaje personaje)
 {
     if (personaje is PersonajeTerrestre) return true;
     return false;
 }