org.mars_sim.msp.core.person.medical
Class AntiStressMedication
java.lang.Object
org.mars_sim.msp.core.person.medical.Medication
org.mars_sim.msp.core.person.medical.AntiStressMedication
- All Implemented Interfaces:
- Serializable, Comparable<Medication>
public class AntiStressMedication
- extends Medication
- implements Serializable
A medication that reduces stress.
- See Also:
- Serialized Form
|
Method Summary |
void |
timePassing(double time)
Update the medication based on passing time. |
NAME
public static final String NAME
- See Also:
- Constant Field Values
AntiStressMedication
public AntiStressMedication(Person person)
- Constructor
- Parameters:
person - the person taking the medication.
timePassing
public void timePassing(double time)
- Description copied from class:
Medication
- Update the medication based on passing time.
Child classes should override for other medical effects.
- Overrides:
timePassing in class Medication
- Parameters:
time - amount of time (millisols).
Copyright © 2009-2013. All Rights Reserved.