diff --git a/Creacher.cs b/Creacher.cs index ac7dfd4..214f38f 100644 --- a/Creacher.cs +++ b/Creacher.cs @@ -2,18 +2,28 @@ using System; namespace creachopedia { class Creacher { - public string name; - public int kingdom; - public string description; - public int footsies; + public string name {get; set;} + // public int kingdom; + // public string description; + private int _footsies; + public int footsies {get { return this._footsies; } set { Console.WriteLine("What do you think you're doing?! 0uo Leave those footsies alone!!!"); }} + public string type = "simple creacher"; public Creacher(string name, int footsyCount = 4) { this.name = name; - this.footsies = footsyCount; + this._footsies = footsyCount; } public void Introduce() { - Console.WriteLine($"Hello, my name is... {this.name}. I am a {this.GetType()}, and I have {this.footsies} footsies."); + Console.WriteLine($"Hello, my name is... {this.name}. I am a {this.type}, and I have {this.footsies} footsies."); + } + public void Step(){ + if(this.footsies == 0){ + Console.WriteLine("I cannot stip or step! I have 0 footsies!!!!"); + Console.WriteLine("Silly creacher..."); + } else { + Console.WriteLine($"The {this.name} steps, and rather well I might add."); + } } } } \ No newline at end of file diff --git a/CreacherTypes.cs b/CreacherTypes.cs index 1ec5f26..8f4239e 100644 --- a/CreacherTypes.cs +++ b/CreacherTypes.cs @@ -1,22 +1,22 @@ namespace creachopedia { class GroundCreacher:Creacher { public GroundCreacher(string name, int footsyCount):base(name, footsyCount){ - + this.type = "creacher of the land"; } } class AirCreacher:Creacher { public AirCreacher(string name, int footsyCount):base(name, footsyCount){ - + this.type = "creacher of the sky"; } } class WaterCreacher:Creacher{ public WaterCreacher(string name, int footsyCount):base(name, footsyCount){ - + this.type = "creacher of the water"; } } class UndergroundCreacher:Creacher { public UndergroundCreacher(string name, int footsyCount):base(name, footsyCount){ - + this.type = "creacher that lives underground"; } } } \ No newline at end of file diff --git a/Program.cs b/Program.cs index 301940b..02bca8d 100644 --- a/Program.cs +++ b/Program.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Threading; namespace creachopedia { @@ -12,10 +13,12 @@ namespace creachopedia { creacherdict.Add("stingray", new WaterCreacher("stingray", 0)); while (true) { - Console.WriteLine("Please input a creacher name 0u0"); + Console.WriteLine("Please input a creacher name, or (q) to quit 0u0"); string userin = Console.ReadLine(); if (creacherdict.ContainsKey(userin)) { creacherdict[userin].Introduce(); + creacherdict[userin].Step(); + creacherdict[userin].footsies = 2; } else if(userin == "q"){ Console.WriteLine("Thank you for using the CreachoPedia!!!!"); @@ -27,6 +30,8 @@ namespace creachopedia { else { Console.WriteLine("I don't know what that is! What on boo Earth?!!?!?!?"); } + Console.WriteLine(""); + Thread.Sleep(1000); } diff --git a/bin/Debug/netcoreapp3.1/creachopedia.dll b/bin/Debug/netcoreapp3.1/creachopedia.dll index 0d547b0..186b0eb 100644 Binary files a/bin/Debug/netcoreapp3.1/creachopedia.dll and b/bin/Debug/netcoreapp3.1/creachopedia.dll differ diff --git a/bin/Debug/netcoreapp3.1/creachopedia.pdb b/bin/Debug/netcoreapp3.1/creachopedia.pdb index 86df146..7046b9d 100644 Binary files a/bin/Debug/netcoreapp3.1/creachopedia.pdb and b/bin/Debug/netcoreapp3.1/creachopedia.pdb differ diff --git a/creachopedia.json b/creachopedia.json new file mode 100644 index 0000000..4eb7c3f --- /dev/null +++ b/creachopedia.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/obj/Debug/netcoreapp3.1/creachopedia.dll b/obj/Debug/netcoreapp3.1/creachopedia.dll index 0d547b0..186b0eb 100644 Binary files a/obj/Debug/netcoreapp3.1/creachopedia.dll and b/obj/Debug/netcoreapp3.1/creachopedia.dll differ diff --git a/obj/Debug/netcoreapp3.1/creachopedia.pdb b/obj/Debug/netcoreapp3.1/creachopedia.pdb index 86df146..7046b9d 100644 Binary files a/obj/Debug/netcoreapp3.1/creachopedia.pdb and b/obj/Debug/netcoreapp3.1/creachopedia.pdb differ