Class: Reve::Classes::CharacterSheet

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

Overview

Holds the result of the Reve::API#character_sheet call. This has all of the stuff that appears in the in-game ‘character sheet’ screen. The skills array is a Skill list (no name is stored in it) The enhancers array is an AttributeEnhancer derrived list Attributes

  • name ( String ) - Name of the Character

  • race ( String ) - Race of the Character

  • gender ( String ) - Gender of the Character

  • id ( Fixnum ) - ID of the Character

  • corporation_name ( String ) - Name of the Corporation the Character is in

  • corporation_id ( Fixnum ) - ID of the Corporation the Character is in

  • balance ( Float ) - How much ISK the Character has

  • intelligence ( Fixnum ) - Character’s Intelligence level

  • memory ( Fixnum ) -

  • charisma ( Fixnum ) -

  • perception ( Fixnum ) -

  • willpower ( Fixnum ) -

  • skills ( [Skill] ) - An Array of Skill objects that the Character has trained.

  • enhancers ( [AttributeEnhancer] ) - An Array of any implants (AttributeEnhancer) the Character has in its head.

See Also: Reve::API#character_sheet, AttributeEnhancer (and subclasses), Skill

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCharacterSheet

:nodoc:



581
582
583
584
585
586
587
588
589
590
591
# File 'lib/reve/classes.rb', line 581

def initialize #:nodoc:
  @skills = []
  @enhancers = []
  @roles = []
  @certificate_ids = []
  @corporate_titles = []
  @corporationRolesAtHQ = []
  @corporationRoles = []
  @corporationRolesAtBase = []
  @corporationRolesAtOther = []
end

Instance Attribute Details

#balanceObject

Returns the value of attribute balance.



573
574
575
# File 'lib/reve/classes.rb', line 573

def balance
  @balance
end

#bloodlineObject

Returns the value of attribute bloodline.



573
574
575
# File 'lib/reve/classes.rb', line 573

def bloodline
  @bloodline
end

#certificate_idsObject

Returns the value of attribute certificate_ids.



575
576
577
# File 'lib/reve/classes.rb', line 575

def certificate_ids
  @certificate_ids
end

#charismaObject

Returns the value of attribute charisma.



574
575
576
# File 'lib/reve/classes.rb', line 574

def charisma
  @charisma
end

#clone_nameObject

Returns the value of attribute clone_name.



574
575
576
# File 'lib/reve/classes.rb', line 574

def clone_name
  @clone_name
end

#clone_skill_pointsObject

Returns the value of attribute clone_skill_points.



574
575
576
# File 'lib/reve/classes.rb', line 574

def clone_skill_points
  @clone_skill_points
end

#corporate_titlesObject

Returns the value of attribute corporate_titles.



575
576
577
# File 'lib/reve/classes.rb', line 575

def corporate_titles
  @corporate_titles
end

#corporation_idObject

Returns the value of attribute corporation_id.



573
574
575
# File 'lib/reve/classes.rb', line 573

def corporation_id
  @corporation_id
end

#corporation_nameObject

Returns the value of attribute corporation_name.



573
574
575
# File 'lib/reve/classes.rb', line 573

def corporation_name
  @corporation_name
end

#corporationRolesObject Also known as: corporate_roles

Returns the value of attribute corporationRoles.



576
577
578
# File 'lib/reve/classes.rb', line 576

def corporationRoles
  @corporationRoles
end

#corporationRolesAtBaseObject Also known as: corporate_roles_at_base

Returns the value of attribute corporationRolesAtBase.



576
577
578
# File 'lib/reve/classes.rb', line 576

def corporationRolesAtBase
  @corporationRolesAtBase
end

#corporationRolesAtHQObject Also known as: corporate_roles_at_hq

Returns the value of attribute corporationRolesAtHQ.



576
577
578
# File 'lib/reve/classes.rb', line 576

def corporationRolesAtHQ
  @corporationRolesAtHQ
end

#corporationRolesAtOtherObject Also known as: corporate_roles_at_other

Returns the value of attribute corporationRolesAtOther.



576
577
578
# File 'lib/reve/classes.rb', line 576

def corporationRolesAtOther
  @corporationRolesAtOther
end

#enhancersObject

Returns the value of attribute enhancers.



575
576
577
# File 'lib/reve/classes.rb', line 575

def enhancers
  @enhancers
end

#genderObject

Returns the value of attribute gender.



573
574
575
# File 'lib/reve/classes.rb', line 573

def gender
  @gender
end

#idObject

Returns the value of attribute id.



573
574
575
# File 'lib/reve/classes.rb', line 573

def id
  @id
end

#intelligenceObject

Returns the value of attribute intelligence.



574
575
576
# File 'lib/reve/classes.rb', line 574

def intelligence
  @intelligence
end

#memoryObject

Returns the value of attribute memory.



574
575
576
# File 'lib/reve/classes.rb', line 574

def memory
  @memory
end

#nameObject

Returns the value of attribute name.



573
574
575
# File 'lib/reve/classes.rb', line 573

def name
  @name
end

#perceptionObject

Returns the value of attribute perception.



574
575
576
# File 'lib/reve/classes.rb', line 574

def perception
  @perception
end

#raceObject

Returns the value of attribute race.



573
574
575
# File 'lib/reve/classes.rb', line 573

def race
  @race
end

#rolesObject

Returns the value of attribute roles.



575
576
577
# File 'lib/reve/classes.rb', line 575

def roles
  @roles
end

#skillsObject

Returns the value of attribute skills.



575
576
577
# File 'lib/reve/classes.rb', line 575

def skills
  @skills
end

#willpowerObject

Returns the value of attribute willpower.



574
575
576
# File 'lib/reve/classes.rb', line 574

def willpower
  @willpower
end

Instance Method Details

#characterid=(i) ⇒ Object

:nodoc:



598
599
600
# File 'lib/reve/classes.rb', line 598

def characterid=(i) #:nodoc:
  @id = i.to_i
end

#clonename=(n) ⇒ Object

:nodoc:



592
593
594
# File 'lib/reve/classes.rb', line 592

def clonename=(n) #:nodoc:
  @clone_name = n
end

#cloneskillpoints=(i) ⇒ Object

:nodoc:



595
596
597
# File 'lib/reve/classes.rb', line 595

def cloneskillpoints=(i) #:nodoc:
  @clone_skill_points = i
end

#corporationid=(i) ⇒ Object

:nodoc:



604
605
606
# File 'lib/reve/classes.rb', line 604

def corporationid=(i) #:nodoc:
  @corporation_id = i.to_i
end

#corporationname=(i) ⇒ Object

:nodoc:



601
602
603
# File 'lib/reve/classes.rb', line 601

def corporationname=(i) #:nodoc:
  @corporation_name = i
end