package week12day3;

import java.util.ArrayList;

public class Person {
	private boolean isDeathEater;
	private boolean darkMark;
	private String name;
	private int alive;
	private Person possesor;
	private Person spouse;
	private boolean isProtected;
	private ArrayList<Person> children;
	private ArrayList<Person> friends;
	private ArrayList<Person> enemies;
	private boolean isWizard;
	public Person(String name, boolean isWizard){
		this.name = name;
		children = new ArrayList<Person>();
		friends = new ArrayList<Person>();
		enemies = new ArrayList<Person>();
		this.isWizard = isWizard;
	}
	
	public void joinDeathEaters(){
		isDeathEater = true;
		receiveDarkMark();
	}
	public void receiveDarkMark(){
		darkMark = true;
	}
	
	public void marry(Person spouse){
		this.spouse = spouse;
		spouse.spouse = this;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public Person haveChild(String name, boolean isWizard){
		Person child = new Person(name, isWizard);
		children.add(child);
		return child;
	}
	
	public void kill(Person other){
		if(other.isProtected){
			throw new RuntimeException("You cannot kill a  protected person!");
		}
		else{
			other.alive = 0; //they're dead.
		}
	}
	
	public void protect(Person other){
		other.isProtected = true;
	}
	
	public void abuse(Person other){
		
	}
	
	public void relocate(Person refugee, Person newHome){
		//now refugee lives with newHome.
	}
	
	public String toString(){
		return name;
	}

	public void interceptMail() {
		//snatch the mail from Harry
		
	}

	public void blockMail() {
		//board up the house
	}

	public void flee() {
		// run away with family to a remote cottage
		
	}

	public void deliverMessge(Person recipient) {
		// give the letter to Harry
		
	}

	public void wishHappyBirthday(Person harryPotter) {
		// give Harry his first-ever birthday cake
		
	}

	public void goShopping() {
		// get all that wizardly stuff
		
	}

	public void possess(Person other) {
		other.possesor = this;
		
	}
	
	public void friend(Person other){
		friends.add(other);
	}
	
	public void unfriend(Person other){
		friends.remove(other);
	}

	public void rideTrain() {
		buySweets();
		
	}
	public void buySweets(){
		//the entire cartful.
	}

	public void sort(House house) {
		house.join(this);
	}

	public void mock(Person other) {
		// make fun of Harry because of his dad
		
	}

	public void showOff() {
		
		
	}

	public void fly() {
		// It's just like magic!
		
	}

	public void suspect(Person other) {
		// watch him like a hawk!
		
	}

	public void offend(Person other) {
		// snarky comments
		
	}

	public void cry() {
		
	}

	public void rescue(Person other) {
		
	}

	public void attemptToKill(Person other) {
		
	}

	public void reachWrongConclusion() {
		
	}

	public void infoDump(Person other) {
		
	}

	public void sneakAroundWith(Person friend1, Person friend2) {
		
	}

	public void playMusic() {
		// music will sooth the savage beast!
		
	}

	public void shedSomeLight() {
		// ARE you a witch or aren't you?
		
	}

	public void playChess() {
		
	}

	public void solveRiddle() {
		
	}

	public void battle(Person other) {
		
	}

	public void stealStone() {
		
	}

	public void prevail() {
		
	}

	public void wakeUp() {
		
	}
	
}
