Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Thing {
- private Container myLocation
- init(Container = null) {
- myLocation = Container ?? new UndefinedContainer("Jest gdzieś lecz nie wiadomo gdzie...")
- }
- moveTo(Container): void {
- myLocation = Container
- Container.append(this)
- }
- location(): Container {
- return myLocation;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement