Buttons

Photobucket Photobucket Photobucket Photobucket Photobucket

Tuesday, February 21, 2012

Collaborative Artificial Intelligence

Programming language: C++
Software: Microsoft Visual Studio
Engine: Opengl

Owner is a cleric, he/she have a pet, a Dragon.
Owner had to take care of the Dragon, and the Dragon will protect the owner till it dies.

FSM  # 1 - Owner    
States

If Dragon hunger is more than 50, the Owner FEED the Dragon.
If Owner never see monster, Owner MOVE around.
If Owner see monster, Owner send message to Dragon. While Dragon protecting Owner, the Owner is in STAND BY mode to fight monster. (Even if Owner feeding the Dragon)
If Dragon’s health point less than 80 over 100, Owner will HEAL Dragon every 0.5 second.
If Dragon dies, Owner will FIGHT the monster.
If Owner health point less than or equal to 0, Owner will DIE.

Conditions

If Dragon hunger is more than 50, the Owner FEED the Dragon.
If Owner never see monster, Owner MOVE around.
If Owner see monster, Owner send message to Dragon. While Dragon protecting Owner, the Owner is in STAND BY mode to fight monster. (Even if Owner feeding the Dragon)
If Dragon’s health point less than 80 over 100, Owner will HEAL Dragon every 0.5 second.
If Dragon dies, Owner will FIGHT the monster.
If Owner health point less than or equal to 0, Owner will DIE.


FSM  # 2 – Dragon(pet)       
States

If Dragon hunger more than 50, the Dragon will be HUNGRY and send message to Owner.
If Owner never see monster, the Dragon will MOVE around with Owner.
If Owner see monster, the Dragon will PROTECT Owner. (Even it is hungry)
If Dragon health point is less than or equal to 0, the Dragon will DIE.

Conditions

If Dragon hunger more than 50, the Dragon will be HUNGRY and send message to Owner.
If Owner never see monster, the Dragon will MOVE around with Owner.
If Owner see monster, the Dragon will PROTECT Owner. (Even it is hungry)
If Dragon health point is less than or equal to 0, the Dragon will DIE.


No comments:

Post a Comment