Advertisement
jsbsan

accionJuega

Oct 8th, 2013
1,801
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.81 KB | None | 0 0
  1. 'Clase ClassJugadorHumano
  2. Public Function juega(tablero As ClassTablero, Optional ProducidoClick As Boolean[], Optional col As Integer[], Optional TextLabelmensajes As TextLabel, Optional area As TextArea) As ClassTablero
  3. ...
  4. ...
  5. While Not ok
  6.     'espero que se produza un click en el tablero...
  7.     If ProducidoClick[0] = True Then
  8.      
  9.       area.Text &= gb.CrLf & "Jugador: " & colorJugador[Str$(Super.numero)] & ", columna: " & Str$(col[0])
  10.       ok = tablero.insertaficha(col[0] - 1, Super.numero)
  11.       If OK = False Then
  12.         Print "Movimiento ilegal"
  13.         TextLabelMensajes.text = "Movimiento ilegal"
  14.         ProducidoClick[0] = False
  15.       Else
  16.         ProducidoClick[0] = False
  17.         Break
  18.       Endif
  19.       ProducidoClick[0] = False
  20.     Else
  21.       Wait 0.005
  22.     Endif
  23.    
  24.   Wend
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement