generic window #181
Aliases: generic window, window
5 verbs · 21 properties · 0 children
Verbs
| Verb | Spec | Flags | Definer | Lines |
|---|---|---|---|---|
look_place_msg | this none this | rxd | #181 | 7 |
tell | this none this | rxd | #181 | 4 |
open | this none none | rxd | #181 | 13 |
close | this none none | rxd | #181 | 13 |
look_self | this none this | rxd | #181 | 7 |
Properties
| Property | Definer | Flags | Owner | Value |
|---|---|---|---|---|
open | #181 | rc | #361 | 1 |
look_place_open_msg | #181 | rc | #361 | "The windows are open, showing %t." |
look_place_closed_msg | #181 | rc | #361 | "The windows are set to opaque." |
otherside | #181 | rc | #361 | #-1 |
prefix_msg | #181 | rc | #361 | "Outside:" |
open_msg | #181 | rc | #361 | "%DN opens %dt." |
close_msg | #181 | rc | #361 | "%DN closes %dt." |
openable | #181 | rc | #361 | 1 |
open_otherside_msg | #181 | rc | #361 | "%DT opens." |
close_otherside_msg | #181 | rc | #361 | "%DT closes." |
filtration | #181 | rc | #361 | 2 |
aliases | #1 | rc | #361 | {"generic window", "window"} |
description | #1 | rc | #361 | "A window." |
object_size | #1 | r | #29 | {3864, 1298434129} |
hidden_verbs | #1 | rc | #361 | <clear> |
phelp_msg | #1 | rc | #361 | <clear> |
weight | #1 | rc | #361 | <clear> |
owner_verbs | #1 | rc | #361 | <clear> |
plural_name | #1 | rc | #361 | <clear> |
client_image | #1 | rc | #361 | <clear> |
listening | #1 | rc | #361 | 1 |
Ancestry
Ancestors (nearest first): #1 root
Children: none
Call graph
Source
look_place_msg
Referenced by
- #181:look_self line 2:
this:look_place_msg
Source
1if (this.open) 2r = this.look_place_open_msg; 3else 4r = this.look_place_closed_msg; 5endif 6r = $su:ps(r, this, this.otherside.location, this.location); 7return r;
tell
Referenced by
none
Source
1if (this.open) 2msg = ((($ansi.cyan + this.otherside.prefix_msg) + $ansi.reset) + " ") + tostr(@args); 3this.otherside.location:announce_all_but({this.otherside, @this.otherside.location:occupants(#115126)}, msg); 4endif
open
Referenced by
none
Source
1if (this.open) 2player:tell(this:dnamec(), " is already open."); 3elseif (!this.openable) 4player:tell("You can't open or close ", this:dname(), "."); 5else 6player:aat($su:ps(this.open_msg, player, this)); 7this.open = 1; 8this.otherside.open = 1; 9if ((!this.location.outdoor) && this.otherside.location.outdoor) 10this.location.windows = 1; 11endif 12this.otherside.location:announce_all($su:ps(this.otherside.open_otherside_msg, player, this.otherside)); 13endif
close
Referenced by
none
Source
1if (!this.open) 2player:tell(this:dnamec(), " is already closed."); 3elseif (!this.openable) 4player:tell("You can't open or close ", this:dname(), "."); 5else 6player:aat($su:ps(this.close_msg, player, this)); 7this.open = 0; 8this.otherside.open = 0; 9if ((!this.location.outdoor) && this.otherside.location.outdoor) 10this.location.windows = 0; 11endif 12this.otherside.location:announce_all($su:ps(this.otherside.close_otherside_msg, player, this.otherside)); 13endif
look_self
Referenced by
none
Source
1pass(@args); 2player:tell(this:look_place_msg()); 3if (this.open) 4player:tell("Through it, you see:"); 5player:tell(""); 6this.otherside.location:look_self(player); 7endif