Linux multi-monitor fullscreen support
[ryzomcore.git] / ryzom / tools / assoc_mem / mood.cpp
bloba0e9f894e63e6da373a912e864d9455b3fce42bf
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #include "mood.h"
20 CMood::CMood()
22 _Fear = 0;
23 _Agressivity = 0;
24 _Empathy = 0;
25 _Happiness = 0;
26 _Hunger = 0;
29 CMood::CMood(float f,float a,float e,float ha,float hu)
31 _Fear = f;
32 _Agressivity = a;
33 _Empathy = e;
34 _Happiness = ha;
35 _Hunger = hu;
38 CMood::CMood(const CMood &mood)
40 _Fear = mood._Fear;
41 _Agressivity = mood._Agressivity;
42 _Empathy = mood._Empathy;
43 _Happiness = mood._Happiness;
44 _Hunger = mood._Hunger;
48 CMood::~CMood()
54 CMood CMood::operator=(const CMood &mood)
56 _Fear = mood._Fear;
57 _Agressivity = mood._Agressivity;
58 _Empathy = mood._Empathy;
59 _Happiness = mood._Happiness;
60 _Hunger = mood._Hunger;
61 return *this;
64 float CMood::getFear()
66 return _Fear;
69 float CMood::getAgressivity()
71 return _Agressivity;
74 float CMood::getEmpathy()
76 return _Empathy;
79 float CMood::getHappiness()
81 return _Happiness;
84 float CMood::getHunger()
86 return _Hunger;
89 void CMood::setFear(float f)
91 _Fear = f;
94 void CMood::setAgressivity(float a)
96 _Agressivity = a;
99 void CMood::setEmpathy(float e)
101 _Empathy = e;
104 void CMood::setHappiness(float ha)
106 _Happiness = ha;
109 void CMood::setHunger(float hu)
111 _Hunger = hu;