Advertisement
jsbsan

delantero

Oct 30th, 2013
1,544
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GAMBAS 0.50 KB | None | 0 0
  1. ' Gambas class file
  2.  
  3. Inherits Jugador
  4.  
  5. Private hgolesmarcados As Integer
  6.  
  7.  
  8. Public Sub _new(nombre As String, minutosjugados As Integer, salario As Integer, golesmarcados As Integer)
  9.  
  10.   Super.New(nombre, minutosjugados, salario)
  11.   hgolesmarcados = golesmarcados
  12.  
  13. End
  14.  
  15.  
  16. Public Sub calculaPuntosPorObjetivos() As Single
  17.  
  18.   Return 30 * (hgolesmarcados / Super.getPartidosJugados())
  19.  
  20. End
  21.  
  22. Public Sub getPuntosPenalizacionPorSalarioAlto() As Single
  23.  
  24.   Return Super.hsalario * 0.1
  25.  
  26. End
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement