mactive
2010-09-05 10:35:30 +08:00
先用GAE 做一个webApp 出来
整理的数据结构如下
unit_basic_information
id
name
race
life
shield
armor(basic+plus[After max upgrades])
movement
cargo_size
attributes
unit_production
producer
hotkey
requires(1个或多个建筑)
cost (mineral,vesper)[100,50]
supply
build_time
unit_combat
upgrades
weapon
ability
需要成单独库的数据
attributes
id,name,type(护甲厚度,护甲类型),is_Massive(巨型单位),is_Psionic(灵能单位)
type eg:Light-Mechanical,Light-Biological,Armored-Biological,Biological-Psionic,Armored-Mechanical, Armored-Mechanical-Massive,Psionic,Light-Biological-Psionic,Armored-Mechanical-Psionic-Massive,(light轻甲 Armored重甲 Mechanical机械 Biological生物 massive厚重 Psionic灵能)
unit_attributes 单位和属性关联的库 unit_id,attriabute_id
==========================================
upgrades
id,name,desc,hockey,cost(mineral,vesper),build_time,researcher,race
eg:
upgrade_name:Protoss Shields Level 3
upgrade_desc:Maximizes the shields of all Protoss units and structures.
hockey:E
cost:400,400
build_time:220
researcher:
unit_upgrades 单位和升级关联的库 unit_id,upgrades_id
==========================================
weapon
id,name,target(攻击目标),range(攻击范围),speed(攻击速率),type(伤害类型),Deamage(伤害值 basic+plus)
zealot eg:Psi Blades,Ground,Melee,Slow,Eviscerate(Melee),8+11
unit_weapon 单位和武器关联的库 unit_id,weapon_id
==========================================
ablility
id,name,desc,hockey,requires,cooldown
zealot eg:charge,allow zealot to intercept…, C , Charge,10
unit_ablility 单位和技能关联的库 unit_id,ablility_id
==========================================
需要成define的数据
['race'] terran,protoss,zerg
['movement'] very slow,slow,normal,fast,very fast