def weather(self): # Create Weather Class as a container to what will happen during time # THIS NEEDS TO BE SET TO PRACTICAL DEGENERATIVE PARAMETERS time = Weather() # Add Attributes this Weather will help morale = Attribute("Morale") morale.setValue(-1) time.addAttribute(morale) hygiene = Attribute("Hygiene") hygiene.setValue(-1) time.addAttribute(hygiene) hunger = Attribute("Hunger") hunger.setValue(-1) time.addAttribute(hunger) fatigue = Attribute("Fatigue") fatigue.setValue(-1) time.addAttribute(fatigue) health = Attribute("Health") health.setValue(-100) time.addAttribute(health) # Post as a Cluster Weather Event ev = Events.ClusterWeatherEvent(0, time) self.mediator.post(ev)
def dummyMethod_killACharacter(self): degenerate = Weather() health = Attribute("Health") health.setValue(-1) degenerate.addAttribute(health) ev = Events.CharacterUpdateEvent(self.characters[self.killerID].getName(), degenerate) self.mediator.post(ev)