View/Edit #3838:draw_special

Switch to edit mode.

Name(s): draw_special
1:  t = this:has_tick(player)
2:  tm = t.maze_layout[t.cur_sq[1]][t.cur_sq[2]]
3:  if (index(tm, t.start_l) && index(tm, tostr(t.dir)))
4:    args[1] = this:draw_str(this.start, args[1])
5:  endif
6:  if (index(tm, t.end_l) && index(tm, tostr(t.dir)))
7:    args[1] = this:draw_str(this.exit, args[1])
8:  endif
9:  if (index(tm, tostr((t.dir - 5) % 4 + 4)))
10:   args[1] = this:draw(this.left_star, args[1])
11: endif
12: if (index(tm, tostr(t.dir % 4 + 1)))
13:   args[1] = this:draw(this.right_star, args[1])
14: endif
15: if (!(this:wall_ahead(tm) || this:exit_ahead(tm) || this:enter_ahead(tm)))
16:   csq = {t.cur_sq[1] + t.movement[t.dir][1], t.cur_sq[2] + t.movement[t.dir][2]}
17:   tm = t.maze_layout[csq[1]][csq[2]]
18:   if (index(tm, tostr((t.dir - 5) % 4 + 4)))
19:     args[1] = this:draw(this.fwd_left_star, args[1])
20:   endif
21:   if (index(tm, tostr(t.dir % 4 + 1)))
22:     args[1] = this:draw(this.fwd_right_star, args[1])
23:   endif
24:   if (index(tm, tostr(t.dir)))
25:     args[1] = this:draw(this.fwd_star, args[1])
26:   endif
27: endif
28: return args[1]

Verb arguments: this none this
Verb perms: Readable eXecutable NOT-Debug
Verb owned by: whiz (#3135)

You are not logged in.

[home | help | who | search | setup | code]