forked from Kyleleesang/TextGame
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCreature.java
More file actions
41 lines (34 loc) · 776 Bytes
/
Creature.java
File metadata and controls
41 lines (34 loc) · 776 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package homework1;
import java.lang.String;
/**
*
* @author kleesans
*/
public class Creature {
String name;
String description;
Room* current;
public Creature(String n){
name = n;
}
public String toString(){
return name;
}
//alerting animals about the room
public void notification() {
}
//method signature for peekroom since all animals can peek
Public void Peekroom(){
}
//allows a creature to enter or exit a room
Public void Changeroom () {
}
//change room state
Public void Interact() {
}
}