Ejercicios UML
Objetos Móviles
+NombreObjeto: String
+ NivelDeEnergia: Int
+ PotenciadorOfensivo: Int
Ingreso Usuario
0.1 + Coordenada X: Int
+ NombreJugador: String 0.1 + Coordenada Y: Int
+ getNombreJugador(): Void + Armas: String
− setNombreJugador(String): Void + Botiquines: String
+ Proyectiles: String
+ getUbicaciónPersonaje(): Int
Iniciar Partida + getNombreObjeto(): String
+ getNivelDeEnergia(): Int
+NuevoJuego: String
+ getArmas(): String
+ Iniciar: String
+ getArmas(): String
+ Salir: String
+ getBotiquines(): String
HaceParteDE 0.1 + getNuevoJuego(): String + getProyectiles(): String
+ getIniciar(): String +getPotenciadorOfensivo(): Int
+ getSalir(): String − getArmas(String): Void
− SetNuevoJuego(String): Void − setNombreObjeto(String): Void
− SetIniciar(String): Void − setNivelDeEnergia(Int): Void
− SetSalir(String): Void − setPotenciadorOfensivo(Int): Void
Escenario
+ CargarEscenario: String 0.1 0.1 Objetos Inmóviles
+ Escena: String +NombreObjeto: String
+ getCargarEscenario(): String + Coordenada X: Int
+ getEscena(): String + Coordenada Y: Int
+ getNombreObjeto(): Void
0.1
+ getUbicaciónPersonaje(): Int
HaceParteDE 0.1 + getMuros(): String
0.1 HaceParteDE + getTorres(): String
HaceParteDE + getArboles(): String
− setMuros(String): Void
Personaje − setTorres(String): Void
+ NombreJugador: String − setArboles(String): Void
− setNombreObjeto(String): Void
+ Coordenada X: Int
+ Coordenada Y: Int
+ Energía: Int
+ PuntosDeVida: Int
+ CapacidadOfensiva: Int
+ Caminar: String
+Correr: String
+ Colisiones: String
+ Inventario: String
+ getNombre(): String
+ getTomarArma(): Int
Enemig
+ getPotenciadorArma(): Int
o + getUbicaciónPersonaje(): Int
+ Coordenada X: Int + getEnergia(): Int
+ Coordenada Y: Int + getPuntosDeVida(): Int
+ Caminar: String + getCapacidadOfensiva():
+Correr: String + getCaminar(): String
+ Colisiones: String + getCorrer(): String
+ getUbicaciónPersonaje(): Int + getColisiones(): String
+ getCaminar(): String + getInventario(): String
+ getCorrer(): String − setInventario(String): Void
+ getColisiones(): String − setCapacidadDeInventario(Int): Void
− setCaminar(String): Void − setCapacidadDeInventario(<=3): Void
− setCorrer(String): Void − setTomarArma(Int): Void
− setColisiones(String): Void − setPotenciadorArma(Int): Void
− setUbicaciónPersonaje(Int): Void