5 * Created by Alyssa Milburn on Sat Dec 09 2006.
6 * Copyright (c) 2006 Alyssa Milburn. All rights reserved.
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
20 #include "CreatureAgent.h"
23 CreatureAgent::CreatureAgent(unsigned char _family
) : Agent(_family
, 0, 0, 0) {
26 // TODO: set zorder randomly :) should be somewhere between 1000-2700, at a /guess/
34 CreatureAgent::~CreatureAgent() {
39 void CreatureAgent::setCreature(Creature
*c
) {
43 slots
[0] = creature
->getGenome();
44 species
= (creature
->isFemale() ? 2 : 1);
46 // category needs to be set, so call setClassifier now
47 setClassifier(family
, genus
, species
);
50 void CreatureAgent::tick() {
57 void CreatureAgent::startWalking() {
62 void CreatureAgent::stopWalking() {
66 void CreatureAgent::approach(AgentRef it
) {