Skip to content

Commit

Permalink
Projektdateien hinzufügen.
Browse files Browse the repository at this point in the history
  • Loading branch information
mjra authored and mjra committed May 12, 2022
1 parent 32d5730 commit 31a4f47
Show file tree
Hide file tree
Showing 17 changed files with 1,899 additions and 0 deletions.
6 changes: 6 additions & 0 deletions App.config
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
3 changes: 3 additions & 0 deletions CurrentSaveFile.xml
@@ -0,0 +1,3 @@
<root>

</root>
93 changes: 93 additions & 0 deletions FamilyMembers.cs
@@ -0,0 +1,93 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sheltered_2_SE
{

class FamilyMembers
{
public string FirstName { get; set; }
public string LastName { get; set; }
public int Health { get; set; }
public int MaxHealth { get; set; }
public bool Interacting { get; set; }
public bool InteractingWithObj { get; set; }
public int AnimHash { get; set; }
public float AnimTime { get; set; }
public bool HasBeenDefibbed { get; set; }

public override string ToString()
{
return FirstName + "\n" + LastName + "\n" + Health + "\n" + MaxHealth + "\n" + Interacting + "\n" + InteractingWithObj + "\n" + AnimHash + "\n" + AnimTime + "\n" + HasBeenDefibbed;
}

public FamilyMembers(
string firstName, string lastName, int health, int maxHealth, bool interacting, bool interactingWithObj, int animHash, float animTime,bool hasBeenDefibbed)

{
FirstName = firstName;
LastName = lastName;
Health = health;
MaxHealth = maxHealth;
Interacting = interacting;
InteractingWithObj = interactingWithObj;
AnimHash = animHash;
AnimTime = animTime;
HasBeenDefibbed = hasBeenDefibbed;
}

}

class BaseStats
{
public int StrengthLevel { get; set; }
public int StrengthCap { get; set; }
public int DexterityLevel { get; set; }
public int DexterityCap { get; set; }
public int IntelligenceLevel { get; set; }
public int IntelligenceCap { get; set; }
public int CharismaLevel { get; set; }
public int CharismaCap { get; set; }
public int PerceptionLevel { get; set; }
public int PerceptionCap { get; set; }
public int FortitudeLevel { get; set; }
public int FortitudeCap { get; set; }


public override string ToString()
{
return $@"Strength: {StrengthLevel}/{StrengthCap}
Dexterity: {DexterityLevel}/{DexterityCap}
Intelligence : {IntelligenceLevel}/{IntelligenceCap}
Charisma: {CharismaLevel}/{CharismaCap}
Perception: {PerceptionLevel}/{PerceptionCap}
Fortitude: {FortitudeLevel}/{FortitudeCap}";
}

//public override string ToString()
//{
// return StrengthCap + "\n" + StrengthLevel + "\n" + DexterityCap + "\n" + DexterityLevel + "\n" + IntelligenceCap + "\n" + IntelligenceLevel + "\n" + CharismaCap + "\n" + ;
//}


//public BaseStats(
// int cap, int level)
//{
// StrengthCap = cap;
// StrengthLevel = level;
// DexterityCap = cap;
// DexterityLevel = level;
// IntelligenceCap = cap;
// IntelligenceLevel = level;
// CharismaCap = cap;
// CharismaLevel = level;
// PerceptionCap = cap;
// PerceptionLevel = level;
// FortitudeCap = cap;
// FortitudeLevel = level;
//}
}
}

0 comments on commit 31a4f47

Please sign in to comment.