[][src]Struct evtclib::raw::Agent

pub struct Agent {
    pub addr: u64,
    pub prof: u32,
    pub is_elite: u32,
    pub toughness: i16,
    pub concentration: i16,
    pub healing: i16,
    pub condition: i16,
    pub name: [u8; 64],
}

An agent.

Fields

addr: u64

Agent id.

prof: u32

Agent profession id.

is_elite: u32

Agent elite specialisation.

toughness: i16

Toughnes.

concentration: i16

Concentration.

healing: i16

Healing.

condition: i16

Condition

name: [u8; 64]

Name/Account combo field.

Implementations

impl Agent[src]

pub fn is_gadget(&self) -> bool[src]

Checks whether this agent is a gadget.

Gadgets are entities spawned by some skills, like the "Binding Roots" spawned by Entangle.

pub fn is_character(&self) -> bool[src]

Checks whether this agent is a character.

Characters are entities like clones, pets, minions, spirits, but also minis.

pub fn is_player(&self) -> bool[src]

Checks whether this agent is a player.

Trait Implementations

impl Clone for Agent[src]

impl Debug for Agent[src]

impl Default for Agent[src]

impl Eq for Agent[src]

impl Hash for Agent[src]

impl PartialEq<Agent> for Agent[src]

impl<'_> TryFrom<&'_ Agent> for AgentKind[src]

type Error = EvtcError

The type returned in the event of a conversion error.

fn try_from(raw_agent: &Agent) -> Result<Self, Self::Error>[src]

Extract the correct AgentKind from the given raw agent.

This automatically discerns between player, gadget and characters.

Note that in most cases, you probably want to use Agent::try_from or even process instead of this function.

impl<'_> TryFrom<&'_ Agent> for Agent[src]

type Error = EvtcError

The type returned in the event of a conversion error.

fn try_from(raw_agent: &Agent) -> Result<Self, Self::Error>[src]

Parse a raw agent.

impl TryFrom<Agent> for AgentKind[src]

type Error = EvtcError

The type returned in the event of a conversion error.

fn try_from(raw_agent: Agent) -> Result<Self, Self::Error>[src]

Convenience method to avoid manual borrowing.

Note that this conversion will consume the agent, so if you plan on re-using it, use the TryFrom<&raw::Agent> implementation that works with a reference.

impl TryFrom<Agent> for Agent[src]

type Error = EvtcError

The type returned in the event of a conversion error.

fn try_from(raw_agent: Agent) -> Result<Self, Self::Error>[src]

Convenience method to avoid manual borrowing.

Note that this conversion will consume the agent, so if you plan on re-using it, use the TryFrom<&raw::Agent> implementation that works with a reference.

Auto Trait Implementations

impl RefUnwindSafe for Agent

impl Send for Agent

impl Sync for Agent

impl Unpin for Agent

impl UnwindSafe for Agent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.