Module: Yuki::FollowMe

Defined in:
docs/4_Systems_003_Map_Engine.rb

Class Method Summary collapse

Class Method Details

.clear

Clears the follower (and dispose them)



1257
1258
# File 'docs/4_Systems_003_Map_Engine.rb', line 1257

def clear
end

.dispose

Dispose the follower and release resources.



1294
1295
# File 'docs/4_Systems_003_Map_Engine.rb', line 1294

def dispose
end

.each_follower(&block)

yield a block on each Followers

Examples:

Turn each follower down

Yuki::FollowMe.each_follower { |c| c.turn_down }

Parameters:

  • block (Proc)

    the block to call



1268
1269
# File 'docs/4_Systems_003_Map_Engine.rb', line 1268

def each_follower(&block)
end

.enabledBoolean

Tell if the system is enabled or not

Returns:

  • (Boolean)


1159
1160
# File 'docs/4_Systems_003_Map_Engine.rb', line 1159

def enabled
end

.enabled=(state)

Enable or disabled the system

Parameters:

  • state (Boolean)

    new enabled state



1163
1164
# File 'docs/4_Systems_003_Map_Engine.rb', line 1163

def enabled=(state)
end

.fix_follower_event

Remove event follower from player when the FollowMe gets re-initialized



1213
1214
# File 'docs/4_Systems_003_Map_Engine.rb', line 1213

def fix_follower_event
end

.follower_entitiesArray<#character_name>

Get the follower entities (those giving information about character_name)

Returns:

  • (Array<#character_name>)


1225
1226
# File 'docs/4_Systems_003_Map_Engine.rb', line 1225

def follower_entities
end

.get_follower(i) ⇒ Game_Character

Retrieve a follower

Parameters:

  • i (Integer)

    index of the follower in the @followers Array

Returns:



1262
1263
# File 'docs/4_Systems_003_Map_Engine.rb', line 1262

def get_follower(i)
end

.human_countInteger

Get the number of human following the player (Heroes from 2 to n+1)

Returns:

  • (Integer)


1175
1176
# File 'docs/4_Systems_003_Map_Engine.rb', line 1175

def human_count
end

.human_count=(count)

Set the number of human following the player

Parameters:

  • count (Integer)

    number of human



1179
1180
# File 'docs/4_Systems_003_Map_Engine.rb', line 1179

def human_count=(count)
end

.human_entitiesArray<#character_name>

Get the human follower entities

Returns:

  • (Array<#character_name>)


1229
1230
# File 'docs/4_Systems_003_Map_Engine.rb', line 1229

def human_entities
end

.in_lets_go_mode?Boolean

Is the FollowMe in Let’s Go Mode

Returns:

  • (Boolean)


1199
1200
# File 'docs/4_Systems_003_Map_Engine.rb', line 1199

def in_lets_go_mode?
end

.init(viewport)

Init the FollowMe on a new viewport. Previous Follower are disposed.

Parameters:

  • viewport (Viewport)

    the new viewport



1210
1211
# File 'docs/4_Systems_003_Map_Engine.rb', line 1210

def init(viewport)
end

.is_player_follower?(character) ⇒ Boolean

Test if a character is a Follower of the player

Parameters:

Returns:

  • (Boolean)


1285
1286
# File 'docs/4_Systems_003_Map_Engine.rb', line 1285

def is_player_follower?(character)
end

.lets_go_mode=(mode)

Set the FollowMe Let’s Go Mode state

Parameters:

  • mode (Boolean)

    true if in lets go mode



1203
1204
# File 'docs/4_Systems_003_Map_Engine.rb', line 1203

def lets_go_mode=(mode)
end

.other_pokemon_countInteger

Get the number of Pokemon from “other_party” following the player

Returns:

  • (Integer)


1191
1192
# File 'docs/4_Systems_003_Map_Engine.rb', line 1191

def other_pokemon_count
end

.other_pokemon_count=(count)

Set the number of Pokemon from “other_party” following the player

Parameters:

  • count (Integer)


1195
1196
# File 'docs/4_Systems_003_Map_Engine.rb', line 1195

def other_pokemon_count=(count)
end

.other_pokemon_entitiesArray<#character_name>

Get the friend’s pokemon follower entities

Returns:

  • (Array<#character_name>)


1241
1242
# File 'docs/4_Systems_003_Map_Engine.rb', line 1241

def other_pokemon_entities
end

.particle_push

Push particle of each character if the Follower Manager was in Battle mode.



1291
1292
# File 'docs/4_Systems_003_Map_Engine.rb', line 1291

def particle_push
end

.player_pokemon_entitiesArray<#character_name>

Get the player’s pokemon follower entities

Returns:

  • (Array<#character_name>)


1233
1234
# File 'docs/4_Systems_003_Map_Engine.rb', line 1233

def player_pokemon_entities
end

.player_pokemon_lets_go_entityArray<#character_name>

Get the player’s pokemon follower entity if the FollowMe mode is Let’s Go

Returns:

  • (Array<#character_name>)


1237
1238
# File 'docs/4_Systems_003_Map_Engine.rb', line 1237

def player_pokemon_lets_go_entity
end

.pokemon_countInteger

Get the number of pokemon following the player

Returns:

  • (Integer)


1183
1184
# File 'docs/4_Systems_003_Map_Engine.rb', line 1183

def pokemon_count
end

.pokemon_count=(count)

Set the number of pokemon following the player

Parameters:

  • count (Integer)


1187
1188
# File 'docs/4_Systems_003_Map_Engine.rb', line 1187

def pokemon_count=(count)
end

.position_character(c, i)

Sets the default position of a follower

Parameters:

  • c (Game_Character)

    the character

  • i (Integer)

    the index of the caracter in the @followers Array



1254
1255
# File 'docs/4_Systems_003_Map_Engine.rb', line 1254

def position_character(c, i)
end

.reload_position_after_battle

Positions followers in the correct place after battle



1275
1276
# File 'docs/4_Systems_003_Map_Engine.rb', line 1275

def reload_position_after_battle
end

.reset_position

Reset position of each follower to the player (entering in a building)



1281
1282
# File 'docs/4_Systems_003_Map_Engine.rb', line 1281

def reset_position
end

.save_follower_positions

Saves follower positions to user_data



1278
1279
# File 'docs/4_Systems_003_Map_Engine.rb', line 1278

def save_follower_positions
end

.selected_followerInteger

Get the current selected follower (to move using player moveroutes)

Returns:

  • (Integer)

    0 = no follower selected



1167
1168
# File 'docs/4_Systems_003_Map_Engine.rb', line 1167

def selected_follower
end

.selected_follower=(index1)

Set the selected follower

Parameters:

  • index1 (Integer)

    index of the follower in the follower stack starting at index 1



1171
1172
# File 'docs/4_Systems_003_Map_Engine.rb', line 1171

def selected_follower=(index1)
end

.set_battle_entry(v = true)

Set the Follower Manager in Battle mode. When getting out of battle every character will get its particle pushed.



1288
1289
# File 'docs/4_Systems_003_Map_Engine.rb', line 1288

def set_battle_entry(v = true)
end

.set_player_follower_particles(value)

Enable / Disable the particles for the player followers



1303
1304
# File 'docs/4_Systems_003_Map_Engine.rb', line 1303

def set_player_follower_particles(value)
end

.set_positions(*args)

Sets the position of each follower (Warp)

Parameters:

  • args (Array<Integer, Integer, Integer>)

    array of x, y, direction



1272
1273
# File 'docs/4_Systems_003_Map_Engine.rb', line 1272

def set_positions(*args)
end

.smart_disable

Smart disable the following system (keep it active when smart_enable is called)



1297
1298
# File 'docs/4_Systems_003_Map_Engine.rb', line 1297

def smart_disable
end

.smart_enable

Smart disable the following system (keep it active when smart_enable is called)



1300
1301
# File 'docs/4_Systems_003_Map_Engine.rb', line 1300

def smart_enable
end

.update

Update of the Follower Management. Their graphics are updated here.



1216
1217
# File 'docs/4_Systems_003_Map_Engine.rb', line 1216

def update
end

.update_follower(last_follower, i, entity, chara_update) ⇒ Game_Character

Update of a single follower

Parameters:

  • last_follower (Game_Character)

    the last follower (in case of Follower creation)

  • i (Integer)

    index in the @followers Array

  • entity (PFM::Pokemon, Game_Actor)

    the entity that is shown as a follower

  • chara_update (Boolean)

    if the character graphics and informations needs to be updated

Returns:

  • (Game_Character)

    the character that will become the last_follower



1249
1250
# File 'docs/4_Systems_003_Map_Engine.rb', line 1249

def update_follower(last_follower, i, entity, chara_update)
end

.update_follower_event(last_follower, follower_event)

Function that attempts to set the event as last follower

Parameters:



1221
1222
# File 'docs/4_Systems_003_Map_Engine.rb', line 1221

def update_follower_event(last_follower, follower_event)
end