Struct screeps::objects::StructureNuker
source · pub struct StructureNuker(_);
Implementations
sourceimpl StructureNuker
impl StructureNuker
sourceimpl StructureNuker
impl StructureNuker
pub fn launch_nuke(&self, pos: &RoomPosition) -> ReturnCode
Trait Implementations
sourceimpl AsRef<Reference> for StructureNuker
impl AsRef<Reference> for StructureNuker
sourceimpl Attackable for StructureNuker
impl Attackable for StructureNuker
sourceimpl CanStoreEnergy for StructureNuker
impl CanStoreEnergy for StructureNuker
sourceimpl Clone for StructureNuker
impl Clone for StructureNuker
sourcefn clone(&self) -> StructureNuker
fn clone(&self) -> StructureNuker
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 moresourceimpl From<StructureNuker> for Reference
impl From<StructureNuker> for Reference
sourcefn from(value: StructureNuker) -> Self
fn from(value: StructureNuker) -> Self
Converts to this type from the input type.
sourceimpl FromExpectedType<Reference> for StructureNuker
impl FromExpectedType<Reference> for StructureNuker
fn from_expected_type(reference: Reference) -> Result<Self, ConversionError>
sourceimpl HasCooldown for StructureNuker
impl HasCooldown for StructureNuker
sourceimpl InstanceOf for StructureNuker
impl InstanceOf for StructureNuker
sourcefn instance_of(reference: &Reference) -> bool
fn instance_of(reference: &Reference) -> bool
Checks whenever a given Reference if of type
Self
.sourceimpl OwnedStructureProperties for StructureNuker
impl OwnedStructureProperties for StructureNuker
fn my(&self) -> bool
fn owner_name(&self) -> Option<String>
fn as_owned_structure(self) -> OwnedStructure
sourceimpl PartialEq<StructureNuker> for StructureNuker
impl PartialEq<StructureNuker> for StructureNuker
sourcefn eq(&self, other: &StructureNuker) -> bool
fn eq(&self, other: &StructureNuker) -> bool
sourceimpl ReferenceType for StructureNuker
impl ReferenceType for StructureNuker
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 RoomObjectProperties for StructureNuker
impl RoomObjectProperties for StructureNuker
sourceimpl StructureProperties for StructureNuker
impl StructureProperties for StructureNuker
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 morefn as_structure(self) -> Structure
sourceimpl<'_r> TryFrom<&'_r Reference> for StructureNuker
impl<'_r> TryFrom<&'_r Reference> for StructureNuker
sourceimpl<'_r> TryFrom<&'_r Value> for StructureNuker
impl<'_r> TryFrom<&'_r Value> for StructureNuker
sourceimpl TryFrom<Reference> for StructureNuker
impl TryFrom<Reference> for StructureNuker
sourceimpl TryFrom<StructureNuker> for Reference
impl TryFrom<StructureNuker> for Reference
sourceimpl TryFrom<Value> for StructureNuker
impl TryFrom<Value> for StructureNuker
impl Eq for StructureNuker
impl JsSerialize for StructureNuker
impl Transferable for StructureNuker
Auto Trait Implementations
impl RefUnwindSafe for StructureNuker
impl Send for StructureNuker
impl Sync for StructureNuker
impl Unpin for StructureNuker
impl UnwindSafe for StructureNuker
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,
fn pos(&self) -> RoomPosition
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