|
|||||||||
Atavism Version 2018.1 | AGIS API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectatavism.agis.objects.ResourceNodeGroup
public class ResourceNodeGroup
A ResourceNode is an object players can gather items from. The ResourceNode randomly generates its items upon spawn from the items it has been given and allows the player to gather them if they meet the requirements.
Nested Class Summary | |
---|---|
class |
ResourceNodeGroup.ResourceNodeEntity
Sub-class needed for the interpolated world node so a perceiver can be created. |
Field Summary |
---|
Fields inherited from interface atavism.msgsys.MessageCallback |
---|
NO_FLAGS, RESPONSE_EXPECTED |
Constructor Summary | |
---|---|
ResourceNodeGroup()
|
|
ResourceNodeGroup(AOVector loc,
OID instanceOID)
|
Method Summary | |
---|---|
void |
activate()
Subscribes the instance to receive certain relevant messages that are sent to the world object created by this instance. |
void |
addPlayer(OID playerOid)
Add a player to the update list for this ResourceNode. |
void |
AddResourceNode(ResourceNode node)
|
AOVector |
getLoc()
|
void |
handleMessage(Message msg,
int flags)
Deals with the messages the instance has picked up. |
void |
removePlayer(OID playerOid)
Removes a player from the ResourceNode. |
void |
spawn()
Spawn a world object for the claim. |
void |
spawn(OID instanceOID)
An external call to spawn a world object for the claim. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceNodeGroup()
public ResourceNodeGroup(AOVector loc, OID instanceOID)
Method Detail |
---|
public void AddResourceNode(ResourceNode node)
public void activate()
public void handleMessage(Message msg, int flags)
handleMessage
in interface MessageCallback
msg
- Message sent from other agent.flags
- Bitwise OR of MessageCallback.NO_FLAGS
, MessageCallback.RESPONSE_EXPECTED
.public void spawn(OID instanceOID)
instanceOID
- public void spawn()
public void addPlayer(OID playerOid)
playerOID
- public void removePlayer(OID playerOid)
playerOID
- removeLastID
- public AOVector getLoc()
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |