Atavism Version 2018.1AGIS API

atavism.agis.objects
Class AgisPermissionCallback

java.lang.Object
  extended by atavism.server.objects.PermissionCallback
      extended by atavism.agis.objects.AgisPermissionCallback
All Implemented Interfaces:
java.io.Serializable

public class AgisPermissionCallback
extends PermissionCallback

See Also:
Serialized Form

Field Summary
 
Fields inherited from class atavism.server.objects.PermissionCallback
log, thisObj
 
Constructor Summary
AgisPermissionCallback(AOObject obj)
           
 
Method Summary
 boolean acquire(AOObject acquirer)
          returns true if allowed to pick up this object.
 boolean destroy(AOObject destroyer)
          returns true if allowed to destory this object.
 boolean drop(AOObject dropInto)
          returns true if allowed to drop this object.
 boolean use(AOObject user)
          returns if the user is allowed to use this object CURRENTLY - you can use if you have it in inventory
 
Methods inherited from class atavism.server.objects.PermissionCallback
acquireFrom, use
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgisPermissionCallback

public AgisPermissionCallback(AOObject obj)
Method Detail

acquire

public boolean acquire(AOObject acquirer)
returns true if allowed to pick up this object. CURRENTLY - objects can only be picked up if they are on the ground

Overrides:
acquire in class PermissionCallback

drop

public boolean drop(AOObject dropInto)
returns true if allowed to drop this object. CURRENTLY - all objects can be dropped

Overrides:
drop in class PermissionCallback

use

public boolean use(AOObject user)
returns if the user is allowed to use this object CURRENTLY - you can use if you have it in inventory


destroy

public boolean destroy(AOObject destroyer)
returns true if allowed to destory this object. CURRENTLY - you must have the object in your "inventory" to destroy it

Overrides:
destroy in class PermissionCallback


Copyright © 2018 Dragonsan Studios Sp. z o.o.