Component Model + PoC Mob (#13866)

* Initial work on component mobs.

* Revert simple_animal.dm

* Fix movement.

* Component signals are now #defines.

* Fix magic number in atmos.dm

* Added basic melee attacks.

* Get rid of test spam
This commit is contained in:
Rob Nelson
2017-02-25 15:04:06 -08:00
committed by Probe1
parent 3d70cc1a86
commit fe929e5849
24 changed files with 810 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
/datum/component/ai
var/datum/component/controller/controller
var/state=0 // AI_STATE_* of the AI.
/datum/component/ai/RecieveSignal(var/message_type, var/list/args)
switch(message_type)
if(COMSIG_STATE) // list("name"="statename")
state = args["name"]
/datum/component/ai/New(var/datum/component_container/CC)
..(CC)
controller=GetComponent(/datum/component/controller)