GKGameModelPlayer

Trait GKGameModelPlayer 

Source
pub unsafe trait GKGameModelPlayer: NSObjectProtocol {
    // Provided method
    unsafe fn playerId(&self) -> NSInteger
       where Self: Sized + Message { ... }
}
Available on crate feature GKGameModel only.
Expand description

A protocol used to represent an individual player within a game model.

See also Apple’s documentation

Provided Methods§

Source

unsafe fn playerId(&self) -> NSInteger
where Self: Sized + Message,

Identifier used by GKMinmaxStrategist differentiate players from one another.

Trait Implementations§

Source§

impl ProtocolType for dyn GKGameModelPlayer

Source§

const NAME: &'static str = "GKGameModelPlayer"

The name of the Objective-C protocol that this type represents. Read more
Source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
Source§

impl<T> ImplementedBy<T> for dyn GKGameModelPlayer

Implementations on Foreign Types§

Source§

impl<T> GKGameModelPlayer for ProtocolObject<T>

Implementors§