- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInteraction.py
More file actions
Latest commit
54 lines (39 loc) · 1.34 KB
/
Copy pathInteraction.py
File metadata and controls
54 lines (39 loc) · 1.34 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# -*- coding: utf-8 -*-
"""
Created on Thu Jan 14 13:08:29 2016
@author: Russ.Clay
"""
classInteraction:
def__init__(self, agent1, agent2):
self.agent1=agent1
self.agent2=agent2
self.agent1StartVal=None
self.agent1EndVal=None
self.agent2StartVal=None
self.agent2EndVal=None
# --- Accessor Functions
defgetAgent1(self):
returnself.agent1
defgetAgent2(self):
returnself.agent2
defgetAgent1StartVal(self):
returnself.agent1StartVal
defgetAgent1EndVal(self):
returnself.agent1EndVal
defgetAgent2StartVal(self):
returnself.agent2StartVal
defgetAgent2EndVal(self):
returnself.agent2EndVal
# --- Additional Functions
defdeadCheck(self):
check1=self.agent1.getDeadValue()
check2=self.agent2.getDeadValue()
if(check1orcheck2):
returnTrue
else: returnFalse
defsetStartVals(self):
self.agent1StartVal=self.agent1.getValue()
self.agent2StartVal=self.agent2.getValue()
defsetEndVals(self):
self.agent1EndVal=self.agent1.getValue()
self.agent2EndVal=self.agent2.getValue()