// === CONSTRUCTOR === public Nothing(ActionController actionController) { // Get references to other parts of game engine controller = actionController; textDisplayController = controller.TDC;; playerMessageController = controller.PMC; parserState = controller.PS; }
// === CONSTRUCTOR === public PloverAlcove(LocationController locationController) { // Get references to other parts of game engine controller = locationController; playerController = controller.PC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; }
// === CONSTRUCTOR === public Inventory(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; playerController = controller.PC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; }
// === CONSTRUCTOR === public Say(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; playerMessageController = controller.PMC; textDisplayController = controller.TDC; commandsController = controller.CC; }
// === CONSTRUCTOR === public TrollBridge(LocationController locationController) { // Get references to other parts of game engine controller = locationController; itemController = controller.IC; playerController = controller.PC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; }
private const string RESERVOIR = "45Reservoir"; // Handy reference to reservoir item // === CONSTRUCTOR === public Zzzzz(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; gameController = controller.GC; playerController = controller.PC; itemController = controller.IC; playerMessageController = controller.PMC; textDisplayController = controller.TDC; }
// === CONSTRUCTOR === public Brief(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; locationController = controller.LC; playerMessageController = controller.PMC; textDisplayController = controller.TDC; // Define behaviour for getting a subject subjectOptional = true; }
private const string BIRD = "8Bird"; // Handy reference for the Bird item // === CONSTRUCTOR === public Listen(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; playerController = controller.PC; itemController = controller.IC; locationController = controller.LC; commandsController = controller.CC; playerMessageController = controller.PMC; textDisplayController = controller.TDC; }
// === CONSTRUCTOR === public Wake(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; gameController = controller.GC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; // Define behaviour for getting a subject carryOverVerb = true; subjectOptional = false; }
// === CONSTRUCTOR === public Drop(ActionController actionController) { controller = actionController; parserState = controller.PS; gameController = controller.GC; playerMessageController = controller.PMC; textDisplayController = controller.TDC; playerController = controller.PC; itemController = controller.IC; locationController = controller.LC; carryOverVerb = true; subjectOptional = false; }
// === CONSTRUCTOR === public Drink(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; playerController = controller.PC; itemController = controller.IC; locationController = controller.LC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; // Define behaviour for getting a subject subjectOptional = false; carryOverVerb = true; }
// === CONSTRUCTOR === public Resume(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; gameController = controller.GC; locationController = controller.LC; questionController = controller.QC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; // Define behaviour for getting a subject subjectOptional = true; // Create question used by this action questionController.AddQuestion("resume", new Question("200Acceptable", "54OK", "54OK", false, YesResume, NoDontResume)); }
// === CONSTRUCTOR === public Attack(ActionController actionController) { // Get references to other parts of game engine controller = actionController; gameController = controller.GC; parserState = controller.PS; playerController = controller.PC; itemController = controller.IC; dwarfController = controller.DC; questionController = controller.QC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; playerInput = controller.PI; // Define behaviour for getting a subject subjectOptional = false; // Add question used by this action questionController.AddQuestion("attack", new Question("49BareHands", null, null, true, DragonResponseYes, DragonResponseNo)); }
private bool isDark; // True if the player can't see anything at the current location // === CONSTRUCTOR === public Read(ActionController actionController) { // Get references to other parts of game engine controller = actionController; parserState = controller.PS; gameController = controller.GC; playerController = controller.PC; itemController = controller.IC; questionController = controller.QC; scoreController = controller.SC; textDisplayController = controller.TDC; playerMessageController = controller.PMC; // Define behaviour for getting a subject carryOverVerb = true; subjectOptional = false; // Create question used by this action questionController.AddQuestion("read", new Question("192Clue", "193ReadClue", "54OK", false, OysterYes, null)); }