Created
April 5, 2018 04:51
-
-
Save coligne/eea26983ed73efa25e69251345ce7ba4 to your computer and use it in GitHub Desktop.
性格によって話しかけたときの反応が変わるソース
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Person2.cpp | |
#include "Person.hpp" | |
Person::Person(Character character):_Char(character){} | |
void Person::Talk_To(){ | |
if(_Char == Cheerful){ | |
std::cout << "Hey bro!" << std::endl; | |
}else{ | |
std::cout << "Ah... Hi..." << std::endl; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment