Changes between Version 2 and Version 3 of GerminationxArchitecture


Ignore:
Timestamp:
02/20/2011 09:24:14 AM (9 years ago)
Author:
dave
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GerminationxArchitecture

    v2 v3  
    2323Multiple clients, running in web browsers, programmed in Haxe, for flash or HTML5 canvas.  
    2424Responsible for displaying the world state, and allowing players to interact with it. Objects created here are passed up to the world server layer, so characters respond to changes the player makes. 
     25 
     26= FAtiMA server API = 
     27 
     28The FAtiMA server receives http requests and returns all data in JSON format. 
     29 
     30== /agent-info == 
     31 
     32Returns all the information for all the agents in the world. 
     33 
     34This is in the form of: 
     35 
     36[agent1, agent2, agent3] 
     37 
     38Where each agent consists of: 
     39 
     40General information: 
     41 * name - name of the agent 
     42 * fatactions - a list of the actions recently performed 
     43 * fatemotions - the raw output from the FAtiMA emotional state, converted to JSON 
     44 
     45Game specific data: 
     46 * tile - current world tile location 
     47 * pos - position in the tile 
     48 * emotions - the current accumulated emotional values 
     49 * emotionalloc - the location of the object causing the most significant emotional response 
     50  
     51This is a real example from the game: 
     52 
     53{{{ 
     54[ 
     55  { 
     56     "tile": {"x":1,"y":0}, 
     57     "pos": {"x":7,"y":8}, 
     58     "name": "CoverSpirit", 
     59     "emotions":  
     60        {"Pitty":0,"Gratification":31.025406,"Admiration":5.0656595,"Shame":0,"Gloating":0, 
     61         "Anger":0,"Pride":23.023403,"Resentment":0,"Hate":0,"Satisfaction":0,"Reproach":0, 
     62         "Gratitude":11.897399,"Remorse":0,"Fear":0,"Disappointment":0,"Relief":0, 
     63         "Love":71.686676,"Joy":91.661285,"Fears-Confirmed":0,"Distress":0,"Happy-For":34.498783, 
     64         "Hope":0}, 
     65     "emotionalloc":{"x":12.0,"y":0.0}, 
     66     "fatactions": 
     67        [ 
     68           {"time":232021, "msg":"look-at cover-fruit-b#102#"}, 
     69           {"time":232021,"msg":"look-at vertical-fruit-c#147#"}, 
     70           {"time":232019,"msg":"look-at cover-fruit-a#146#"}, 
     71           {"time":232018,"msg":"look-at cover-fruit-a#183#"}, 
     72           {"time":232018,"msg":"flower cover-fruit-c#22#"} 
     73         ], 
     74     "fatemotions":{"tag":"EmotionalState","attrs":null,"content":[{"tag":"Mood","attrs":null,"content":["10.0"]},...]} 
     75    } 
     76...]  
     77}}} 
     78 
     79== /perceive == 
     80 
     81Causes all agents to perceive the world - for debugging purposes. 
     82 
     83== /agent-sprites == 
     84 
     85This command returns a list of all the sprite textures making up the agent's body. This makes it possible to change them in game.