コード例 #1
0
ファイル: Microchip.cs プロジェクト: Chris3y/TextAdventure
 void Microchip_Taken(object sender, EntityEventArgs e)
 {
     if (TakenCount == 0)
     {
         Timeline.OnMicrochipFirstTaken();
     }
 }
コード例 #2
0
ファイル: Player.cs プロジェクト: Chris3y/TextAdventure
 private void Player_Inspected(object sender, EntityEventArgs e)
 {
     if (InspectedCount == 0)
     {
         Timeline.OnPlayerFirstInspected();
     }
 }
コード例 #3
0
ファイル: OLDTime.cs プロジェクト: Chris3y/TextAdventure
 private void Player_Inspected(object sender, EntityEventArgs e)
 {
     if ((sender as Entity).InspectedCount == 0)
     {
         var item = Space.FindItemByName("MCROCHIP");
         item.IsDiscovered = true;
         item.IsTakable = true;
     }
 }
コード例 #4
0
ファイル: OLDTime.cs プロジェクト: Chris3y/TextAdventure
 private void Microchip_Taken(object sender, EntityEventArgs e)
 {
     var chip = sender as Item;
     if (chip.TakenCount == 0)
     {
         //chip.Description = "A computer chip you dug out of your neck. It must be used for tracking and measuring biological functions.";
         Space.Player.Description = "Clothed in greyish overalls, there is a tag on the left side of your chest which reads \"19771980\". You have an open wound on your neck from where you removed the Microchip.";
         Space.FindExitByName("MYCELDR1").IsLocked = false;
         //Output.Say("<Voice of Microchip>","Subject 19771980: Deceased.");
         //Output.Announce("<A clicking sound was heard from the door.>");
     }
 }
コード例 #5
0
ファイル: OLDTime.cs プロジェクト: Chris3y/TextAdventure
 private void SmallPlaque_Inspected(object sender, EntityEventArgs e)
 {
     var item = (sender as Entity);
     if (item.InspectedCount <= 0)
     {
         Room room = Space.FindRoomByName("MYCELL01");
         if (room != null)
         {
             //Output.Say("You", "Wait... I'm a prisoner?");
             room.DisplayName = "My Cell";
             Space.FindExitByName("MYCELDR1").DisplayName = "My Cell Door";
             Console.WriteLine("(Mysterious Room now known as \"My Cell\".)");
             Console.WriteLine("(Mysterious Room Door now known as \"My Cell Door\".)");
         }
     }
 }
コード例 #6
0
ファイル: Microchip.cs プロジェクト: Chris3y/TextAdventure
 void Timeline_PlayerFirstInspected(object sender, EntityEventArgs e)
 {
     this.IsTakable = true;
 }
コード例 #7
0
ファイル: Microchip.cs プロジェクト: Chris3y/TextAdventure
 void Timeline_MicrochipFirstTaken(object sender, EntityEventArgs e)
 {
     Description = "A computer chip that you dug out of your neck. It must be used for tracking and measuring biological functions.";
     Notify("<Subject's vital signs lost>: Pronounced Deceased.");
     IsUsable = true;
 }
コード例 #8
0
ファイル: Microchip.cs プロジェクト: Chris3y/TextAdventure
 void Microchip_Used(object sender, EntityEventArgs e)
 {
     Notify("It isn't doing anything.");
 }
コード例 #9
0
ファイル: OLDTime.cs プロジェクト: Chris3y/TextAdventure
 private void MyCellDoor_Opened(object sender, EntityEventArgs e)
 {
     //Output.Announce("You grasp the bars in the windows slowly heave open the door. As it opens, light from the landing makes the room slighly more visible, though there isn't much to see.");
     Space.FindRoomByName("MYCELL01").Description = "The room is very bare. There's really not much to see.";
 }