Class: Status

Inherits:
Object
  • Object
show all
Defined in:
models.rb

Class Method Summary (collapse)

Class Method Details

+ (bool) bleeding

Bleeding

Examples:

Echoing bleeding status to main window

echo Status::bleeding
=> 1

Returns:

  • (bool)

    is bleeding



355
356
357
358
# File 'models.rb', line 355

def self.bleeding
  $_api_socket.puts "GET BLEEDING\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) dead

Dead

Examples:

Echoing dead status to main window

echo Status::dead
=> 0

Returns:

  • (bool)

    is dead



344
345
346
347
# File 'models.rb', line 344

def self.dead
  $_api_socket.puts "GET DEAD\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) hidden

Hidden

Examples:

Using is hidden in script.

if Status::hidden
  put unhide
end
=> 1

Returns:

  • (bool)

    is hidden



368
369
370
371
# File 'models.rb', line 368

def self.hidden
  $_api_socket.puts "GET HIDDEN\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) invisible

Invisible

Examples:

Echoing invisible status to main window

echo Status::invisible
=> 0

Returns:

  • (bool)

    is ivisible



379
380
381
382
# File 'models.rb', line 379

def self.invisible
  $_api_socket.puts "GET INVISIBLE\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) joined

Joined

Examples:

Echoing joined status to main window

echo Status::joined
=> 1

Returns:

  • (bool)

    is joined



401
402
403
404
# File 'models.rb', line 401

def self.joined
  $_api_socket.puts "GET JOINED\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) kneeling

Kneeling

Examples:

Echoing kneeling status to main window

echo Status::kneeling
=> 0

Returns:

  • (bool)

    is kneeling



300
301
302
303
# File 'models.rb', line 300

def self.kneeling
  $_api_socket.puts "GET KNEELING\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) prone

Prone

Examples:

Echoing prone status to main window

echo Status::prone
=> 0

Returns:

  • (bool)

    is prone



322
323
324
325
# File 'models.rb', line 322

def self.prone
  $_api_socket.puts "GET PRONE\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) sitting

Sitting

Examples:

Echoing sitting status to main window

echo Status::sitting
=> 0

Returns:

  • (bool)

    is sitting



311
312
313
314
# File 'models.rb', line 311

def self.sitting
  $_api_socket.puts "GET SITTING\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) standing

Standing

Examples:

Echoing standing status to main window

echo Status::standing
=> 1

Returns:

  • (bool)

    is standing



289
290
291
292
# File 'models.rb', line 289

def self.standing
  $_api_socket.puts "GET STANDING\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) stunned

Stunned

Examples:

Echoing stunned status to main window

echo Status::stunned
=> 0

Returns:

  • (bool)

    is stunned



333
334
335
336
# File 'models.rb', line 333

def self.stunned
  $_api_socket.puts "GET STUNNED\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end

+ (bool) webbed

Webbed

Examples:

Echoing webbed status to main window

echo Status::webbed
=> 0

Returns:

  • (bool)

    is webbed



390
391
392
393
# File 'models.rb', line 390

def self.webbed
  $_api_socket.puts "GET WEBBED\n"
  $_api_socket.gets('\0').chomp('\0').to_i.eql?(1)
end