-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscene2.pro
32 lines (30 loc) · 1.94 KB
/
scene2.pro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
%% CONSTANTS %%
height(10).
width(10).
universe_limit(5).
%% GLOBAL VARIABLES %%
global_state_id(2).
global_universe_id(0).
% state(StateId, Agents, CurrentTurn, TurnOrder).
% Agents = agent_dict{AgentId: agent{X, Y, Class}, ...}
% CurrentTurn = TurnIndex
% TurnOrder = [AgentId, AgentId, ...]
state(0, agent_dict{0: agent{x: 1, y: 1, class: warrior, health: 100, mana: 100, agility: 2, armor: 8, name: 'Arthur'},
1: agent{x: 3, y: 4, class: wizard, health: 100, mana: 100, agility: 5, armor: 2, name: 'Merlin'},
2: agent{x: 4, y: 5, class: rogue, health: 100, mana: 100, agility: 8, armor: 5, name: 'Mordred'}}, 0, [0, 1, 2]).
state(1, agent_dict{0: agent{x: 1, y: 2, class: warrior, health: 100, mana: 100, agility: 2, armor: 8, name: 'Arthur'},
1: agent{x: 3, y: 4, class: wizard, health: 100, mana: 100, agility: 5, armor: 2, name: 'Merlin'},
2: agent{x: 4, y: 5, class: rogue, health: 100, mana: 100, agility: 8, armor: 5, name: 'Mordred'}}, 1, [0, 1, 2]).
state(2, agent_dict{0: agent{x: 1, y: 2, class: warrior, health: 100, mana: 100, agility: 2, armor: 8, name: 'Arthur'},
1: agent{x: 4, y: 4, class: wizard, health: 100, mana: 100, agility: 5, armor: 2, name: 'Merlin'},
2: agent{x: 4, y: 5, class: rogue, health: 100, mana: 100, agility: 8, armor: 5, name: 'Mordred'}}, 2, [0, 1, 2]).
state(3, agent_dict{0: agent{x: 1, y: 2, class: warrior, health: 100, mana: 100, agility: 2, armor: 8, name: 'Arthur'},
1: agent{x: 4, y: 4, class: wizard, health: 100, mana: 100, agility: 5, armor: 2, name: 'Merlin'},
2: agent{x: 5, y: 5, class: rogue, health: 100, mana: 100, agility: 8, armor: 5, name: 'Mordred'}}, 0, [0, 1, 2]).
% history(StateId, UniverseId, Time, Turn).
history(0, 0, 0, 0).
history(1, 0, 0, 1).
history(2, 0, 0, 2).
history(3, 0, 1, 0).
% current_time(UniverseId, Time, Turn).
current_time(0, 1, 0).