Struct screeps::objects::StructureKeeperLair
source · [−]pub struct StructureKeeperLair(_);
Implementations
sourceimpl StructureKeeperLair
impl StructureKeeperLair
pub fn ticks_to_spawn(&self) -> u32
Trait Implementations
sourceimpl AsRef<Reference> for StructureKeeperLair
impl AsRef<Reference> for StructureKeeperLair
sourceimpl Attackable for StructureKeeperLair
impl Attackable for StructureKeeperLair
sourceimpl Clone for StructureKeeperLair
impl Clone for StructureKeeperLair
sourcefn clone(&self) -> StructureKeeperLair
fn clone(&self) -> StructureKeeperLair
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<StructureKeeperLair> for Reference
impl From<StructureKeeperLair> for Reference
sourcefn from(value: StructureKeeperLair) -> Self
fn from(value: StructureKeeperLair) -> Self
Converts to this type from the input type.
sourceimpl FromExpectedType<Reference> for StructureKeeperLair
impl FromExpectedType<Reference> for StructureKeeperLair
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl HasId for StructureKeeperLair
impl HasId for StructureKeeperLair
sourcefn untyped_id(&self) -> RawObjectId
fn untyped_id(&self) -> RawObjectId
Retrieves this object’s id as an untyped, packed value. Read more
sourceimpl InstanceOf for StructureKeeperLair
impl InstanceOf for StructureKeeperLair
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type Self
.
sourceimpl OwnedStructureProperties for StructureKeeperLair
impl OwnedStructureProperties for StructureKeeperLair
sourcefn has_owner(&self) -> bool
fn has_owner(&self) -> bool
Whether this structure is currently owned by someone (in JS: owner !== undefined
) Read more
sourcefn owner_name(&self) -> Option<String>
fn owner_name(&self) -> Option<String>
The name of the owner of this structure, if any.
sourcefn as_owned_structure(self) -> OwnedStructurewhere
Self: SizedRoomObject,
fn as_owned_structure(self) -> OwnedStructurewhere
Self: SizedRoomObject,
Anonymize this as an owned structure.
sourceimpl PartialEq<StructureKeeperLair> for StructureKeeperLair
impl PartialEq<StructureKeeperLair> for StructureKeeperLair
sourcefn eq(&self, other: &StructureKeeperLair) -> bool
fn eq(&self, other: &StructureKeeperLair) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl ReferenceType for StructureKeeperLair
impl ReferenceType for StructureKeeperLair
sourceunsafe fn from_reference_unchecked(reference: Reference) -> Self
unsafe fn from_reference_unchecked(reference: Reference) -> Self
Converts a given reference into a concrete reference-like wrapper. Doesn’t do any type checking; highly unsafe to use! Read more
sourceimpl StructureProperties for StructureKeeperLair
impl StructureProperties for StructureKeeperLair
fn structure_type(&self) -> StructureType
fn destroy(&self) -> ReturnCode
fn is_active(&self) -> bool
sourcefn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
fn notify_when_attacked(&self, notify_when_attacked: bool) -> ReturnCode
Usable on either owned structures or neutral structures in owned rooms,
returns ReturnCode::NotOwner
otherwise. Read more
fn as_structure(self) -> Structurewhere
Self: SizedRoomObject,
sourceimpl<'_r> TryFrom<&'_r Reference> for StructureKeeperLair
impl<'_r> TryFrom<&'_r Reference> for StructureKeeperLair
sourceimpl<'_r> TryFrom<&'_r Value> for StructureKeeperLair
impl<'_r> TryFrom<&'_r Value> for StructureKeeperLair
sourceimpl TryFrom<Reference> for StructureKeeperLair
impl TryFrom<Reference> for StructureKeeperLair
sourceimpl TryFrom<StructureKeeperLair> for Reference
impl TryFrom<StructureKeeperLair> for Reference
sourceimpl TryFrom<Value> for StructureKeeperLair
impl TryFrom<Value> for StructureKeeperLair
impl Eq for StructureKeeperLair
impl JsSerialize for StructureKeeperLair
Auto Trait Implementations
impl RefUnwindSafe for StructureKeeperLair
impl Send for StructureKeeperLair
impl Sync for StructureKeeperLair
impl Unpin for StructureKeeperLair
impl UnwindSafe for StructureKeeperLair
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
impl<T> FromExpectedType<Value> for Twhere
T: FromExpectedType<Reference>,
fn from_expected_type(v: Value) -> Result<T, ConversionError>
sourceimpl<T> HasPosition for Twhere
T: RoomObjectProperties,
impl<T> HasPosition for Twhere
T: RoomObjectProperties,
sourceimpl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
impl<T, U> IntoExpectedType<U> for Twhere
U: FromExpectedType<T>,
sourcefn into_expected_type(self) -> Result<U, ConversionError>
fn into_expected_type(self) -> Result<U, ConversionError>
Casts this value as the target type, making the assumption that the types are correct. Read more