### Hierarchy

- RCAPI

## Index

### Constructors

- constructor

### Properties

- client

### Methods

- _calculateManabar
- calculateRCMana
- calculateVPMana
- call
- findRCAccounts
- getRCMana
- getResourceParams
- getResourcePool
- getVPMana

## Constructors

### constructor

- new RCAPI(client: Client): RCAPI

- - Defined in helpers/rc.ts:8

  #### Parameters

  - ##### client: Client

  #### Returns RCAPI

## Properties

### client

client: Client

- Defined in helpers/rc.ts:9

## Methods

### Private _calculateManabar

- _calculateManabar(max_mana: number, __namedParameters: object): Manabar

- - Defined in helpers/rc.ts:73

  Internal convenience method to reduce redundant code

  #### Parameters

  - ##### max_mana: number

  - ##### __namedParameters: object

    - ##### current_mana: any

    - ##### last_update_time: any

  #### Returns Manabar

### calculateRCMana

- calculateRCMana(rc_account: RCAccount): Manabar

- - Defined in helpers/rc.ts:58

  Calculates the RC mana-data based on an RCAccount - findRCAccounts()

  #### Parameters

  - ##### rc_account: RCAccount

  #### Returns Manabar

### calculateVPMana

- calculateVPMana(account: Account): Manabar

- - Defined in helpers/rc.ts:65

  Calculates the RC mana-data based on an Account - getAccounts()

  #### Parameters

  - ##### account: Account

  #### Returns Manabar

### call

- call(method: string, params?: any): Promise<any>

- - Defined in helpers/rc.ts:14

  Convenience for calling `rc_api`.

  #### Parameters

  - ##### method: string

  - ##### Optional params: any

  #### Returns Promise<any>

### findRCAccounts

- findRCAccounts(usernames: string[]): Promise<RCAccount[]>

- - Defined in helpers/rc.ts:21

  Returns RC data for array of usernames

  #### Parameters

  - ##### usernames: string[]

  #### Returns Promise<RCAccount[]>

### getRCMana

- getRCMana(username: string): Promise<Manabar>

- - Defined in helpers/rc.ts:42

  Makes a API call and returns the RC mana-data for a specified username

  #### Parameters

  - ##### username: string

  #### Returns Promise<Manabar>

### getResourceParams

- getResourceParams(): Promise<RCParams>

- - Defined in helpers/rc.ts:28

  Returns the global resource params

  #### Returns Promise<RCParams>

### getResourcePool

- getResourcePool(): Promise<RCPool>

- - Defined in helpers/rc.ts:35

  Returns the global resource pool

  #### Returns Promise<RCPool>

### getVPMana

- getVPMana(username: string): Promise<Manabar>

- - Defined in helpers/rc.ts:50

  Makes a API call and returns the VP mana-data for a specified username

  #### Parameters

  - ##### username: string

  #### Returns Promise<Manabar>

Generated using TypeDoc