Docs.rs
  • screeps-game-api-0.13.0
    • screeps-game-api 0.13.0
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • daboross
    • shanemadden
    • Dependencies
      • arrayvec ^0.7 normal
      • enum-iterator ^1.4 normal
      • enum_dispatch ^0.3 normal
      • js-sys ^0.3 normal
      • num-derive ^0.3 normal
      • num-traits ^0.2 normal
      • serde ^1 normal
      • serde-wasm-bindgen ^0.5 normal
      • serde_json ^1 normal
      • serde_repr ^0.1 normal
      • wasm-bindgen ^0.2 normal
      • bincode ^1.3 dev
      • wasm-bindgen-test ^0.3 dev
    • Versions
    • 38.47% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

Attackable

Implementors

In screeps::traits

?
Change settings

Trait screeps::traits::Attackable

source ·
pub trait Attackable: HasHits + AsRef<RoomObject> { }
Expand description

Trait for all wrappers over Screeps JavaScript objects which can be the target of Creep.attack.

Contracts

The reference returned from AsRef<RoomObject>::as_ref must be a valid target for Creep.attack.

Implementors§

source§

impl Attackable for Creep

source§

impl Attackable for OwnedStructure

source§

impl Attackable for PowerCreep

source§

impl Attackable for StructureContainer

source§

impl Attackable for StructureExtension

source§

impl Attackable for StructureExtractor

source§

impl Attackable for StructureFactory

source§

impl Attackable for StructureInvaderCore

source§

impl Attackable for StructureKeeperLair

source§

impl Attackable for StructureLab

source§

impl Attackable for StructureLink

source§

impl Attackable for StructureNuker

source§

impl Attackable for StructureObserver

source§

impl Attackable for StructurePowerBank

source§

impl Attackable for StructurePowerSpawn

source§

impl Attackable for StructureRampart

source§

impl Attackable for StructureRoad

source§

impl Attackable for StructureSpawn

source§

impl Attackable for StructureStorage

source§

impl Attackable for StructureTerminal

source§

impl Attackable for StructureTower

source§

impl Attackable for StructureWall