Top Level Namespace

Defined in:

Constant Summary

CAPTION = "Protocol 16"
DEC_STRESS = ["оправляется от стресса", "выглядит получше", "возвращается из мертвых"]
DEF_COLOR = ColorPair.new(Color::WHITE, Color::BLACK)
FONT_NAME = "default"
FONT_SIZE = 12
GRAMMAR_NUMBERS = {0 => "ов", 1 => "", 2 => "а", 3 => "а", 4 => "а", 5 => "ов", 6 => "ов", 7 => "ов", 8 => "ов", 9 => "ов"}
GREEN_COLOR = ColorPair.new(Color::GREEN, Color::BLACK)
INC_STRESS = ["шокирован~ проиcходящим", "доведен~ до предела", "не выдерживает и сдается"]
LOCKED_COLOR = ColorPair.new(Color::GREY, Color::BLACK)
RED_COLOR = ColorPair.new(Color::RED, Color::BLACK)
REL_NAMES = {Relation::Known => "знаком~ с", Relation::Friend => "дружит с", Relation::BestFriend => "лучшие друзья с"}
SCREEN_HEIGHT = 36
SCREEN_WIDTH = 120
SEL_COLOR = ColorPair.new(Color::GREEN, Color::BLACK)
STRESS_COLOR = ["green", "yellow", "red", "dark red"]
STRESS_NAMES = {0 => "[color=green]в порядке[/color]", 1 => "[color=yellow]испытывает стресс[/color]", 2 => "[color=red]на гране срыва[/color]"}
TEST_COLOR = ColorPair.new(Color::BLACK, Color::BLUE)
YELLOW_COLOR = ColorPair.new(Color::YELLOW, Color::BLACK)

Method Summary

Method Detail

def build_skill_levels(world) #

[View source]
def chat(world, who, what) #

[View source]
def chat_ls(world, who, whom, what) #

[View source]
def chat_spec(world, color, what) #

[View source]
def generate_failures(world, rng, count) #

[View source]
def generate_persons(world, rng, count) #

[View source]
def generate_relations(world, rng) #

[View source]
def generate_stress_reactions(world, rng) #

[View source]
def generate_world(world, rng, n_failures, n_persons) #

[View source]
def grammar_fails(count) #

[View source]
def indicate_new_best_friend(world, she, old, new) #

[View source]
def indicate_relation(world, he, she, rel) #

[View source]
def init_life_config(world) #

[View source]
def read_asset(filename) #

[View source]
def read_ecs_dir(world, dir) #

[View source]
def read_ecs_io(world, io) #

[View source]