Package populus :: Module SocialPuppet :: Class AgentInfo
[frames] | no frames]

Class AgentInfo

A class to set the agent-info.

Instance Methods
 
__init__(self, avatar, game)
 
getDemographicProfile(self)
 
getPersonality(self)
 
getSocialRelation(self)
 
setDemographicProfile(self)
XML example:...
 
setPersonality(self)
XML example:...
 
setSocialRelation(self)
XML example:...
Method Details

setDemographicProfile(self)

 

XML example:
<demographic_profile>
    <gender>female</gender>
    <birth_year>1973</birth_year>
    <maretial_status>married</maretial_status>
    <children>
        <child name="Saga" agent_id="0" />
        <child name="Kari" agent_id="0" />
        <child name="Isak" agent_id="0" />
    </children>
    <education>
        <degree school="RU" level="M.Sc." />
        <degree school="HI" level="B.Sc." />
    </education>
    <profession>CS</profession>
</demographic_profile>

setPersonality(self)

 

XML example:
<personality>
    <extrovert>0.5</extrovert>
</personality>

setSocialRelation(self)

 

XML example:
<social_relation>
    <race>Minmatar</race>
    <corporations>
        <corp corp_name="RU" job_title="Programmer" />
    </corporations>
    <standings>
        <standing>
            <entity id="center_interlocutor" type="agent" name="Jon" /><!-- type can be: agent, corporation, faction, player -->
            <value>-5</value> <!-- from -10 to 10 -->
        </standing>
    </standings>
</social_relation>