|
|||||||||
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.server.objects.PermissionCallback
public class PermissionCallback
this object implements callbacks for actions that need to check permissions to do something with an object. you register these callbacks on an object by calling AOObject.setPermissionCallback() each callback object should be used for one and only one aoobject (in case the callback sets state) each object can have its own permissionCallback
Field Summary | |
---|---|
protected static Logger |
log
|
protected AOObject |
thisObj
|
Constructor Summary | |
---|---|
PermissionCallback()
|
|
PermissionCallback(AOObject obj)
|
Method Summary | |
---|---|
boolean |
acquire(AOObject acquirer)
THIS is an object, someone is trying to acquire it. |
boolean |
acquireFrom(AOObject acquirer,
AOObject obj)
THIS is a container containing an 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(OID activatorOid)
returns if the user is allowed to equip/use this object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected AOObject thisObj
protected static final Logger log
Constructor Detail |
---|
public PermissionCallback()
public PermissionCallback(AOObject obj)
Method Detail |
---|
public boolean acquire(AOObject acquirer)
public boolean acquireFrom(AOObject acquirer, AOObject obj)
public boolean drop(AOObject dropInto)
public boolean use(OID activatorOid)
public boolean destroy(AOObject destroyer)
|
Copyright © 2018 Dragonsan Studios Sp. z o.o. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |