Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Daniele Lucas
ItiAdventure
Commits
d5546f44
Commit
d5546f44
authored
Feb 06, 2021
by
Aroubate Hamza
Browse files
Update Monde.java
parent
6f604a5d
Changes
1
Hide whitespace changes
Inline
Side-by-side
ITIAdventure/src/fr/insarouen/asi/prog/asiaventure/Monde.java
View file @
d5546f44
package
fr.insarouen.asi.prog.asiaventure
;
import
fr.insarouen.asi.prog.asiaventure.elements.*
;
public
class
Monde
{
private
String
nom
;
private
Entite
[]
entite
;
public
Monde
(
String
nom
){
this
.
nom
=
nom
;
}
public
String
getNom
(){
return
this
.
nom
;
}
public
Entite
[]
getEntite
(){
return
this
.
entite
;
}
public
void
ajouter
(
Entite
nouvelleEntite
){
entite
[
entite
.
length
-
1
]
=
nouvelleEntite
;
}
public
String
toString
(){
return
"Nom : "
+
this
.
nom
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment