Add joker type. Allow automatic conversion to are you
This commit is contained in:
@@ -3,6 +3,7 @@ using DefaultNamespace;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using Utils;
|
||||
using Random = UnityEngine.Random;
|
||||
|
||||
public class GuardManager : MonoBehaviour, IDescribable
|
||||
{
|
||||
@@ -61,10 +62,12 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
QuestionAnswer.NO_YES => QuestionAnswer.NO_YES // i think? since we cannot confidently lie?
|
||||
};
|
||||
}
|
||||
else
|
||||
{//add joker at some point
|
||||
throw new NotImplementedException();
|
||||
else if (type == "JOKER")
|
||||
{
|
||||
return Random.value > 0.5? QuestionAnswer.YES : QuestionAnswer.NO;
|
||||
}
|
||||
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
|
||||
@@ -129,8 +132,12 @@ public class GuardManager : MonoBehaviour, IDescribable
|
||||
else if (mod == "HAT")
|
||||
{
|
||||
return "the guard with the hat";
|
||||
}// add more modification here
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "the plain guard";
|
||||
}
|
||||
// add more modification here
|
||||
}
|
||||
|
||||
public QuestionAnswer GetProperty(string property)
|
||||
|
||||
Reference in New Issue
Block a user