mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
43 lines
641 B
JavaScript
43 lines
641 B
JavaScript
|
var TYPE = require('../TYPE');
|
||
|
|
||
|
var CheckAgainst = {
|
||
|
|
||
|
setCheckAgainstNone: function ()
|
||
|
{
|
||
|
this.body.checkAgainst = TYPE.NONE;
|
||
|
|
||
|
return this;
|
||
|
},
|
||
|
|
||
|
setCheckAgainstA: function ()
|
||
|
{
|
||
|
this.body.checkAgainst = TYPE.A;
|
||
|
|
||
|
return this;
|
||
|
},
|
||
|
|
||
|
setCheckAgainstB: function ()
|
||
|
{
|
||
|
this.body.checkAgainst = TYPE.B;
|
||
|
|
||
|
return this;
|
||
|
},
|
||
|
|
||
|
checkAgainst: {
|
||
|
|
||
|
get: function ()
|
||
|
{
|
||
|
return this.body.checkAgainst;
|
||
|
},
|
||
|
|
||
|
set: function (value)
|
||
|
{
|
||
|
this.body.checkAgainst = value;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
};
|
||
|
|
||
|
module.exports = CheckAgainst;
|