X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FPerson.h;h=3afbdca6d68e9699fbf976d759c634783a135edd;hb=794f89c25569a9bf50f167689ca0faa3dcffc577;hp=0c030ab3cae27c6962de5511b886be3fb6c2e640;hpb=c518eded68d59b0abcfaa2493863a70b45737d0c;p=lugaru.git diff --git a/Source/Person.h b/Source/Person.h index 0c030ab..3afbdca 100644 --- a/Source/Person.h +++ b/Source/Person.h @@ -47,6 +47,12 @@ along with Lugaru. If not, see . #define rabbittype 0 #define wolftype 1 +struct InvalidPersonException : public exception { + const char * what () const throw () { + return "Invalid weapon number"; + } +}; + class Person : public enable_shared_from_this { public: @@ -315,6 +321,7 @@ public: bool jumpclimb; Person(); + Person(FILE*, int, unsigned); // convenience functions inline Joint& joint(int bodypart) { return skeleton.joints[skeleton.jointlabels[bodypart]]; }